PDA

View Full Version : [AS2] Setting Intervals


M1KE
03-20-2009, 10:07 PM
This, as I assume, is probably a common error with, like all my problems, a simple sulution.

I have a timer that runs in my game and when it's over it's GAMEOVER!

I then click return and it returns me to the Splash Screen (Main Menu)

Then I try to play the game again but the timer speeds up like so

Instead of a constant rythm like:
1----2----3----4----5----6----7----8
The timer's is more like
1-2--3-4--5-6--7-8
Got the sollution, just I don't.
Thanx

CyanBlue
03-20-2009, 10:11 PM
Howdy and Welcome... :)

It probably is the case where you are not clearing the interval when you are at the end of the interval... So, when you replay the game, you now have two intervals doing the exact same thing which looks like it doubles speed or something like that...