I'm using a lot of Timers
in a current project. My approach is:
TimerState = false
func fixed_process( delta ):
if TimerState == false:
get_node( "/timer" ).start()
TimerState = true
#do stuff
...
On_TimerOut():
TimerState = false
I do that because the Timer
is in fixed_process
, every time this function is executed, timer
is restarted withou even finish. Assuming that i must have this timer
in fixed process
, there is a way to check if the Timer
is runnig, to not restart? Something like if timer.is_runnig() == true
?
Or i am using timer wrong
Or the only way is having a variable to check has i did above?
Thanks folks!