Hi,
I’m making this game with Adobe Flash and I have this level where you need to stop a bomb from exploding, but when you stopped it and go to the next frame the bomb is still running and you still go to the game over screen when the countdown reaches 0. For the countdown I use the following ActionScript:
count = 7;
bomb = function(){
count–;
if (count ==0){
clearInterval(doCountdown);
gotoandplay(4);
}
}
doCountdown = setInterval(bomb, 1000);
(Frame 4 is my game over screen)
I also add with the dynamic text the word ‘‘count’’ next to Var:
So is there a way to make it stop running on the next frame? Also am I willing to use a different ActionScript for a countdown if somebody knows a better one. I’m quite new to this and ANY help will be appreciated. Thanks.