A countdown timer.
Counts down a specified interval and emits a signal on reaching 0. Can be set to repeat or "one shot" mode.
Return the time left for timeout in seconds if the timer is active, 0 otherwise.
Return the timer's processing mode.
Return the wait time in seconds.
Return true if set to automatically start when entering the scene.
Return true if configured as one-shot.
Return if the timer is paused or not.
Set to automatically start when entering the scene.
Set as one-shot. If enabled, the timer will stop after timeout, otherwise it will automatically restart.
Set whether the timer is paused or not. A paused timer will be inactive until it is unpaused again.
Set the timer's processing mode (fixed or idle, use TIMER_PROCESS_* constants as argument).
Set wait time in seconds. When the time is over, it will emit the timeout signal.
Start the Timer.
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].
- Processing mode. Uses TIMER_PROCESS_* constants as value.
- 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.