PDA

View Full Version : Collision Detetion



Enix591
November 28th, 2004, 08:38 PM
I need to know how to detect when an Mc has collided with another, and how to detect which Mc it has collided into.

JoMan
November 28th, 2004, 10:26 PM
Hi,

All that you need is two MovieClips with instance names. Then, the code would be the following:



if (mc1.hitTest(mc2)) {
mc1.gotoAndStop("detected");
}


If that doesn't work, tell me and I'll see whats wrong.





peace