Hi,
I’m having trouble creating a timer to do something. What I’m trying to work out is when the timer reaches 3 seconds > do something; reset timer = 0.
Thanks for the reply. I’ve edit the code and it works but had to tweak it. I thought Time.deltaTime counts its values in seconds but I actually have to test the values myself to get the amount of time I wanted.
Yeah deltaTime returns a float representing elapsed time since the last frame; it is very precise like that so testing for an accumulatedValue > targetValue is the way to go there.
heres a link of a clock i made, it does what your trying to do, however its not efficient as it will most likly end up crashing (would take a long time though)