How exactly does wait_time act on the Timer class

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Peppe

I would like to understand if wait_time is the time that passes between seconds or it acts when the countdown expires, on the godot documentation it is not very clear on this item what is meant.

1 Like
:bust_in_silhouette: Reply From: Inces

wait_time is amount of time Timer will count down until it signals “timeout”. Resetting Timer sets it back to its wait_time. Just like You would choose alarm nap time in your phone.

Correct me if I’m wrong: wait_time then is the time it takes the timer to execute the countdown? That is, for example, if I set the countdown value = 3 seconds, and I set wait_time to 4 seconds, does that mean that godot will print all 3 values in the console, that is 3, 2 and 1 in 4 seconds?

Peppe | 2021-10-11 18:01

Wait, what countdown value ? There is no such thing. There is only wait_time. You start timer, stop, restart and choose wait_time, it is one of the simplest nodes :slight_smile:

Inces | 2021-10-11 19:30