Skip to content

Time actions

6 actions in the Time category. Each block mirrors how the action appears in the editor's sidebar.

Get Elapsed Time

Every Frame
Get Elapsed Time 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.

Phases StartEvery FramePhysicsEnd

Set Time Scale

Start
Set Time Scale Time
1.0

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.

Phases StartEvery FramePhysicsEnd

Start Timer

Start
Start Timer Time
Timer not set | Seconds 1.0 | One Shot true

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.

Phases StartEvery FramePhysicsEnd

Stop Timer

End
Stop Timer Time
not set

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.

Phases StartEvery FramePhysicsEnd

Time In State

Every Frame
Time In State Time

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.

Phases Every FramePhysics

Wait

Every Frame
Wait Time
1.0 | → Finished

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.

Phases Every FramePhysics