Ok. I have two MCs. One a red ball, another a blue. On the red ball, (ball_mc) I have keyboard movement with the arrow keys. I also have the fallowing code on it:
if(this.hitTest(_root.ball2_mc)){
play();
if(ball_mc._currentframe == 6){
stop();
}
}
if(!this.hitTest(_root.ball2_mc)){
_root.ball_mc.gotoAndStop(1);
}
ball2_mc is the blue ball, which is stationairy for now, for testing purposes until later. When the two collide, the red ball should animate and stay at the last frame of that animation (of the red ball shrinking, or imploding kinda), and not do the actions in the hitTest until it’s not touching anymore. The red ball turns into a red dot, but it loops the animations over and over because hitTest keeps returning true. I just want it to do that little animation once, then stop if it’s still touching the ball.
Thanks in advance