amcquade
07-07-2003, 04:11 PM
Hi,
there are a few threads on game timer problems, but none have worked so far for me.
My problem is that I need the timer to start as the frame is entered, the below script makes it start when the film loads:
onClipEvent (enterFrame) {
// calculate time left
time = (getTimer())/1000;
// display time left
_root.score = time;
}
I'd also like to be able to restart the timer as the game starts again.
many thanks in advance.
Al
:confused:
there are a few threads on game timer problems, but none have worked so far for me.
My problem is that I need the timer to start as the frame is entered, the below script makes it start when the film loads:
onClipEvent (enterFrame) {
// calculate time left
time = (getTimer())/1000;
// display time left
_root.score = time;
}
I'd also like to be able to restart the timer as the game starts again.
many thanks in advance.
Al
:confused: