if (mc_bullet.hitTest(mc_car)) {
mc_car gotoAndPlay (“explode”);
//or whatever action you want
}
as an example, the function checking the collision being hitTest, one clip before, the target in brackets. This gets activated (returns a boolean true or false) by the clips bounding boxes! so s’times it may seem it gets set to true before the clips actually touch…
Creating engaging and entertaining content for designers and developers since 1998.