Skip to content

Delay

165

The Delay node is a fundamental timing tool used to pause the flow of logic for a specific duration. Unlike a repeating timer, it is typically used for "one-shot" events where a change should happen after a set period, such as waiting for a pneumatic door to fully open before enabling the next puzzle.

When to use this node: * Sequential Events: Triggering a sound effect precisely 2 seconds after a player presses a button. * Temporary States: Setting a value (e.g., "Active") immediately via startValue, then automatically reverting it via endValue once the interval expires. * Safety Pauses: Adding a small delay between mechanical movements to prevent hardware wear or to give players time to move away from an object.

Pro Tip: You can use the running boolean output to disable a button's input while the delay is active, preventing players from "spamming" an action until the sequence is finished.

Connectors in

  • endValue [type: string]
  • startValue [type: string]
  • interval [type: integer]
  • start [type: action]
  • stop [type: action]

Connectors out

  • value [type: string]
  • running [type: bool]
  • onTimer [type: action]

Node properties

  • endValue [type: string]
  • interval [type: integer]
  • startValue [type: string]