Ok so here is my code.....
stop();
score=0;
timer = 5;
countdown = function(){
timer--;
if(timer==0){
clearInterval(countdownInterval);
}
}
countdownInterval = setInterval(countdown,1000);
(everything is right until here)
if (_root.timer=0)
{_root.gotoAndPlay(5);
}
I am making a simple game and I want the code to take the gamers to the lose screen once the time runs out. (which is scene 5) what is the correct code for this??
stop();
score=0;
timer = 5;
countdown = function(){
timer--;
if(timer==0){
clearInterval(countdownInterval);
}
}
countdownInterval = setInterval(countdown,1000);
(everything is right until here)
if (_root.timer=0)
{_root.gotoAndPlay(5);
}
I am making a simple game and I want the code to take the gamers to the lose screen once the time runs out. (which is scene 5) what is the correct code for this??