-
got a problem with removing a timer
function countdown(){
timer--;
if(timer==0){
trace("Gameover");
clearInterval(countdownInterval);
}
}
countdownInterval = setInterval(countdown,1000);
okay so there is my timer above, the timer counts down and everything else works exept for deleting the function at the end of the level, at the end of the level the script goes to another frame to show you have passed the level and then goes back to the previous frame to play the next level, all the new objects are made but the timer then counts double so its like the timer is running twice at a time so instead of counting down 1 everysecond it counts down 1 every half second, i have tried delete countdown();
i dont know how you actually make this work or how to go about it, can anybody help ? thanks
-
its okay now i used a new timer function
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|