# Timer problem

**URL:** <https://forum.kirupa.com/t/timer-problem/107303>\
**Category:** Uncategorized\
**Created:** [April 14, 2004, 7:48am UTC](https://forum.kirupa.com/t/timer-problem/107303 "2004-04-14T07:48:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![armed\_rob](https://avatars.discourse-cdn.com/v4/letter/a/3ab097/32.png) [@armed\_rob](https://forum.kirupa.com/u/armed_rob)\
**Post date:** [April 14, 2004, 7:48am UTC](https://forum.kirupa.com/t/timer-problem/107303/1 "2004-04-14T07:48:14Z")

</div>

Hi there…

Im doing a classic hit game:

[http://www.wbee.dk/testgame/](http://www.wbee.dk/testgame/)

My problem is the timer!

“load button” loads the game into level2, the game has a mc called “loadmc” where I load the timer into.

No problem if you just play once - but if you unload (with the “unload” button) and load agian the timer runs too fast… :hangover:

Timer action:

i=0;  
countID = setInterval(function (){  
i++;  
if(i==60){  
\_level2.gotoAndStop(“endofgame”);  
clearInterval(countID);  
}  
},1000); // 1000ms=1sec

PLEASE HELP! THANX…
