A
AutoZ
Guest
Hey everyone,
I've been at this for a few days and I'm stumped. Started learning code with GM a year or so ago but I thought I'd ask some of the wizards on here after not finding a solution in the archives or making use/sense of some of the time functions from the manual.
Anyways the issue is a time trial mode for a topdown racing game. I have the timer counting up with the milliseconds/seconds which are being displayed in the UI and when the car passes over the finish line for a second lap the timer rests to zero and begins counting up again. That's all good.
What I would like to know is how to record and display the time when the car crosses the finish line as a best/fastest lap. How can I grab that time and display it as the current best lap time lap time while the counter starts again for lap 2 just like in other racing games.
Thank you so much in advance!
I've been at this for a few days and I'm stumped. Started learning code with GM a year or so ago but I thought I'd ask some of the wizards on here after not finding a solution in the archives or making use/sense of some of the time functions from the manual.
Anyways the issue is a time trial mode for a topdown racing game. I have the timer counting up with the milliseconds/seconds which are being displayed in the UI and when the car passes over the finish line for a second lap the timer rests to zero and begins counting up again. That's all good.
What I would like to know is how to record and display the time when the car crosses the finish line as a best/fastest lap. How can I grab that time and display it as the current best lap time lap time while the counter starts again for lap 2 just like in other racing games.
Thank you so much in advance!
Last edited by a moderator: