Building a Countdown Timer
- Create a variable called Timer.
- When 🏁 clicked → set Timer to (30).
- repeat (30) → wait (1) second → change Timer by (-1).
- After the loop: say “Time’s up!” for 2 seconds → stop all.
The Timer variable counts down from 30 to 0 over 30 seconds, then the game ends.
Upgrade: Add an if block inside the loop — if then stop all — for an early exit.