Forum Topic: Object collisions question

(117 views • 3 replies)

This topic is 1 page long.

<< < > >>
None

9mm-Sleeping-Pill

Reply To Post Reply & Quote

Posted at: 5/16/06 11:17 PM

9mm-Sleeping-Pill NEUTRAL LEVEL 08

Sign-Up: 01/03/04

Posts: 40

How do I make a movieclip get removed when it touches another object? Thanks


None

madness99999

Reply To Post Reply & Quote

Posted at: 5/17/06 01:41 AM

madness99999 NEUTRAL LEVEL 06

Sign-Up: 03/01/04

Posts: 186

if(_root.movieClip1.hitTest(_root.movieCli
p2)){
removeMovieClip(_root.movieClip2);
}


None

madness99999

Reply To Post Reply & Quote

Posted at: 5/17/06 01:42 AM

madness99999 NEUTRAL LEVEL 06

Sign-Up: 03/01/04

Posts: 186

no wait

if(_root.movieClip1.hitTest(_root.movieCli
p2)){
_root.movieClip2. removeMovieClip();
}


None

Chrispington

Reply To Post Reply & Quote

Posted at: 5/17/06 02:51 AM

Chrispington EVIL LEVEL 31

Sign-Up: 07/02/04

Posts: 1,247

you might also have to swap it's depth to a positive number, depending what depth it is on at the moment.

BBS Signature

All times are Eastern Standard Time (GMT -5) | Current Time: 01:53 PM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!