Learn

Chapter 03 Conditions, Time & Loops

#023 Delay vs Timer

The player walks back in, and the door still closes on them.

  • 0:56 video
  • Written lesson
  • Beginner
Video lesson: Delay vs Timer, 0:56

The bug

End Overlap starts a three-second Delay, then Close Door. Walk back in at second two: Begin Overlap opens the door, but the Delay keeps counting. At three seconds, the door closes anyway.

Why Delay can’t fix it

A Delay that has started can’t be cancelled, paused or read. Even Retriggerable Delay can’t help: it restarts the wait, but never cancels it.

The fix: a timer with a handle

End Overlap sets a three-second timer and saves the handle. Begin Overlap clears that handle. The close is cancelled, and the door stays open.

When Delay is still better

  • A one-off wait inside a chain that never needs cancelling.
  • Delay keeps the logic in one readable chain; a timer splits it into a separate event.

And note: Set Timer by Function Name works inside a Function, where Delay isn’t allowed.

Need to cancel, pause, repeat or read the time left? Use a timer.

In short

Delay just waits. A timer can be managed.

Covered in this lesson

  • Delay
  • Retriggerable Delay
  • Set Timer by Event
  • Set Timer by Function Name
  • Timer Handle
  • Clear and Invalidate Timer by Handle

Newsletter

Development updates are coming to your inbox.

The newsletter opens soon. Until then, new lessons, tools and Beach Hunters progress appear first on our channels, linked below.