Time actions
6 actions in the Time category. Each block mirrors how the action appears in the editor's sidebar.
Get Elapsed Time
Reads the number of seconds since the game started and stores it. Subtract a saved start time to measure how long something took.
| Output | Type | Description |
|---|---|---|
| Seconds | float | Where to store the seconds since the game started. |
Set Time Scale
Speeds up or slows down the whole game. 1 is normal speed, 0.5 is slow motion, and 0 freezes everything that runs on delta.
| Input | Type | Default | Description |
|---|---|---|---|
| Scale | float | 1.0 | The time multiplier, where 1 is normal speed. |
Start Timer
Starts a Timer node counting down from a number of seconds. On Timer Timeout runs when the countdown ends.
| Input | Type | Default | Description |
|---|---|---|---|
| Timer | Node | - | The Timer node to start. |
| Seconds | float | 1.0 | How long the countdown lasts, in seconds. |
| One Shot | bool | true | On, the timer fires once. Off, it repeats forever until stopped. |
Stop Timer
Stops a Timer node before it ends, so it never fires. Starting it again runs the countdown from the beginning.
| Input | Type | Default | Description |
|---|---|---|---|
| Timer | Node | - | The Timer node to stop. |
Time In State
Stores how many seconds this state has been running, counting from zero again every time the state is entered. Feed it to a progress bar or to anything that grows the longer the state lasts.
| Output | Type | Description |
|---|---|---|
| Seconds | float | Where to store the seconds spent in this state so far. |
Wait
Waits a number of seconds while staying in this state, then takes the Finished branch on every frame from there on. With Seconds = 3 a game over screen sits still and then moves on. For N Seconds is the one that also gives a branch for the waiting frames.
| Input | Type | Default | Description |
|---|---|---|---|
| Seconds | float | 1.0 | How long to wait, in seconds. |
| Branch | Goes to |
|---|---|
| Finished | Where to go when the time is up. |