Reference
Timers
Clocks that tick while the game runs, for countdowns and things that happen again and again.
What it's for
A timer ticks again and again once logic starts it. Triggers can react when it starts, on every tick and when it ends: use one for a countdown, or for something that happens every few seconds.
How to open it
In the navigator, click the arrow beside Data, then click Timers. The row shows how many there are, and lists each one under it.
The parts
The page is laid out like Value tags. New makes New Timer. Under Timer:
| Setting | What it does |
|---|---|
| The interval, in milliseconds | How long between ticks: 1000 is one second |
| Has End Tick | The timer stops after the number of ticks you give it |
Using it
A timer does nothing until logic starts it. In the logic editor, pick Timers and the timer, then Start, Stop or Reset; the conditions Is Running and Is Not Running check it. A trigger watching Timers can react to Timer start, Timer tick, Timer end or Time passed (milliseconds).