Timer
Related terms: timeout, interval, deadline, scaled time, coroutine
Tracks when a duration has elapsed and triggers an action. A one-shot timer fires once; a repeating timer fires at an interval. Timers drive cooldowns, delayed explosions and enemy spawns.
A frame-based timer usually checks elapsed delta time or compares the current clock with a deadline. It fires on a later update, so timing is limited by update frequency. Choose whether pausing or slow motion should affect its clock.
- Further reading
- Godot: Timer