Hi
I want to pause my stopwatch and make it appear on the screen
This is the timer :
In game :
At the finish line:
I hope that will be clear.
Thanks.
Hi
I want to pause my stopwatch and make it appear on the screen
This is the timer :
In game :
At the finish line:
I hope that will be clear.
Thanks.
hello. sorry, are u trying to pause the timer when the user pauses the game ?
What are you doing there with the timer - are you setting it manually with Delay during Tick?
Why not just use a Timer. It has all the math in, can be formatted however you want and can be paused | unpaused …
What if the end user cannot run the game at 60fps? Your time will run slower.
That’s pretty much all the code needed here, say no to spaghetti script:
This would actually work well with a bound variable.
How to make the widget appear on the screen?
Create widget, add to viewport.
Currently, everything works and I thank you but and i want to stop it when the car reached the finish line. I’m actually trying with “pause timer by handle” but I don’t know how i use it.
When you created a widget, you should have created a reference to it. Use that reference to access the widget and pause / clear the timer.