A countdown timer.
Counts down a specified interval and emits a signal on reaching 0. Can be set to repeat or "one shot" mode.
Returns [code]true[/code] if the timer is stopped.
Starts the timer. Sets [code]wait_time[/code] to [code]time_sec[/code] if [code]time_sec[/code] > 0. This also resets the remaining time to [code]wait_time[/code]. Note: this method will not resume a paused timer. See [method set_paused].
Stop (cancel) the Timer.
- If [code]true[/code], Timer will automatically start when entering the scene tree. Default value: [code]false[/code].
- If [code]true[/code], Timer will stop when reaching 0. If [code]false[/code], it will restart. Default value: [code]false[/code].
- If [code]true[/code], the timer is paused and will not process until it is unpaused again, even if [method start] is called.
- Processing mode. Uses TIMER_PROCESS_* constants as value.
- The timer's remaining time in seconds. Returns 0 if the timer is inactive.
- Wait time in seconds.
Emitted when the Timer reaches 0.
Update the Timer during the physics step at each frame (fixed framerate processing).
Update the Timer during the idle time at each frame.