Here is my code for my Timer.
onClipEvent (load) {
start = getTimer();
startCount = 60;
}
onClipEvent (enterFrame) {
current = (getTimer()-start)/300;
if (current<startCount) {
elapsed = startCount-current;
bCounter = Math.floor(elapsed);
} else {
_root.speed += 10;
_root.score += 10;
}
}
It’s a typical timer now see the last two picces of code that makes my speed and score go up but i dont want it to go up and keep going i just want to add 10 to both i figured in order to stop it i need it to reset.
So anyone know how i can make a rest function i never used it before jus heard of it.