Skip to lesson
LESSON 30 / 44 · Intermediate

Timers, waits and repeating sequences

Control timing without running every action on every frame.

Open editor in a new tab ↗

Before you begin

Create a stationary warning light object.

Build it step by step

  1. Add a rule using Every few seconds and choose a 2-second interval. Add a brief Flash effect on the warning light.

  2. Compare the timer trigger with TIMING → WAIT / DELAY inside an action sequence. A wait pauses that sequence before its next action.

  3. Build a sequence: show light, wait 0.5 seconds, hide light. Use REPEAT with a small count to repeat the sequence.

  4. Keep a wait in a visual repeating sequence so the player can see each state. A rapid show/hide with no delay may appear unchanged.

  5. Pause Play while the sequence is waiting, then resume. Restart and verify that the timing starts from a clean runtime.

TRY THIS IDEA

Practical example

A warning beacon blinks three times before a door opens: REPEAT 3 [Show, WAIT 0.5, Hide, WAIT 0.5], then Open door.

Test your work

The visible sequence runs in the intended order and does not spawn overlapping copies of itself unexpectedly.

If it does not work

WHILE is evaluated every simulation tick. It is not a human-paced timer. Use intervals or waits for readable repetition.

MAKE IT YOUR OWN

Student challenge

Create a warning sequence that gives the player two seconds before a hazard activates.

Show the result to a partner. Explain what you changed and how you tested it.

Keep exploring