View Full Version : collision help
Can anyone lend me a hand with collisions, Im trying to have one box disappear when it hits another and Im have problems with it.
thanks
Akane
01-31-2001, 05:36 PM
there are severals way to do that
if your boxes are MCs, so use the hittest command like this (example) :
box1 and box2 are the 2 MC
______frame1 :
if (box1.hitTest(box2)) {
box1._visible = false;
}
______frame2:
gotoAndPlay (1);
this is the simplest way.
|
vBulletin® v3.8.5, Copyright ©2000-2013, Jelsoft Enterprises Ltd.