# Game countdown timer skipping on replay! Help

**URL:** <https://forum.kirupa.com/t/game-countdown-timer-skipping-on-replay-help/288831>\
**Category:** flash\
**Created:** [May 21, 2009, 3:10pm UTC](https://forum.kirupa.com/t/game-countdown-timer-skipping-on-replay-help/288831 "2009-05-21T15:10:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JinxBunny](https://avatars.discourse-cdn.com/v4/letter/j/6bbea6/32.png) [@JinxBunny](https://forum.kirupa.com/u/JinxBunny)\
**Post date:** [May 21, 2009, 3:10pm UTC](https://forum.kirupa.com/t/game-countdown-timer-skipping-on-replay-help/288831/1 "2009-05-21T15:10:00Z")

</div>

Ok i’ve got a simple demo for a spot the difference game,  
you click, find the differences, if you find all 5, the find count goes down to 0 and you get a win screen… that’s fine

if you don’t find them all within 30 seconds, it goes to a loose screen, that’s also fine

the problem comes when you click to replay and then seemingly for no good reason, the timer skips more than 1 number a second…

this is the code i’m using on the timer

```auto
count = 30;
countdown = function(){
count--;
if (count ==0){
_root.gotoAndStop("lost");
}
}
doCountdown = setInterval(countdown, 1000);

```

you can see the game in action, and also the error when you replay (not refresh, that seems fine) here: [http://JinxBunny.deviantart.com/art/Spot-the-Difference-Flash-Demo-123137088](http://JinxBunny.deviantart.com/art/Spot-the-Difference-Flash-Demo-123137088)

any help / suggestions would be great!
