Before you begin
Create a stationary warning light object.
Build it step by step
Add a rule using Every few seconds and choose a 2-second interval. Add a brief Flash effect on the warning light.
Compare the timer trigger with TIMING → WAIT / DELAY inside an action sequence. A wait pauses that sequence before its next action.
Build a sequence: show light, wait 0.5 seconds, hide light. Use REPEAT with a small count to repeat the sequence.
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.
Pause Play while the sequence is waiting, then resume. Restart and verify that the timing starts from a clean runtime.
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.
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.
