Hey I’m trying to debug a game I’ve been developing over the past few months.
Its about manoeuvering a bubble through the level without touching anything.
Quite similar to ‘Soap Bubble’ for those of you who have played it.
So here’s my problem, I want the bubble to play a “bursting” animation when it touches the wall using this code:
if (bubble.hitTest(wall)){
_root.bubble.gotoAndPlay(“bursting”);
}
However, as the condition is still true after one or two frames it will begin the animation again and again.
How can I fix this so that it will only play once even if it is still touching the wall?