vin23
10-29-2006, 09:36 PM
hey can anyone help me out, im trying to make a lap time counter for a game.
in a movie clip i have the dynamic text on stage, (var timer), that that goes for 3 frames
the script on frame one is
Timer = 60;
script on frame 2 is
if (Number(Timer)>0) {
Timer = Timer-0.05;
} else {
gotoAndPlay('outoftime');
}
and frame 3 is
gotoAndPlay(2);
now that works fine to countdown the seconds from 60
if the player finishes the race, how do i transfer the timer, to the end screen so it will show
how long it took him to finish the race????
in a movie clip i have the dynamic text on stage, (var timer), that that goes for 3 frames
the script on frame one is
Timer = 60;
script on frame 2 is
if (Number(Timer)>0) {
Timer = Timer-0.05;
} else {
gotoAndPlay('outoftime');
}
and frame 3 is
gotoAndPlay(2);
now that works fine to countdown the seconds from 60
if the player finishes the race, how do i transfer the timer, to the end screen so it will show
how long it took him to finish the race????