Hiya
I want to make a scoreboard for my flash mini game but so that the time remaining becomes the score (so the quicker you do it the more points you get!).
I have created my timer as a movie clip with a dynamic textbox with the variable name timer. This is then dragged onto the main timeline and given the instance name of countdown,
The following code makes it work:
Then the freeze the timer on the game over screen i have the code:Code:countdown.onEnterFrame = function() { this.timer = int(30-(getTimer()-startTime)/1000); if (Number(this.timer) == 0) { gotoAndPlay(108); } timer = 0; }
I want to somehow put this "frozen" time into a variable which can be sent to the scoreboard. Any ideas on how I could go about doing this?Code:countdown.onEnterFrame = function() { stop(); };
thanks a lot![]()




Reply With Quote