Theory
🐱 10. Riddle Me This!
🤔 Abby wants to challenge you with a riddle! Can you solve it in under 10 seconds?
⏳ Create your own timer variable to track time. Remove existing code and start fresh for this exciting challenge! 🧩
Step1:
🔢 Head to Variables, tap “Make a Variable,” name it Timer, then click OK
🕒 Naming variables help organization; Ensure Timer displays on screen for clarity.
Step2: 
🚩 Begin script with flag click, then add “set Timer to (10)” to initialize countdown
⏱️ Adjust code: select Timer variable, change initial value to 10 seconds 🔄
Step3:
⏳ Introduce countdown: add “wait (1) second” and “change Timer by (-1)” blocks
🕒 Adjust: select Timer variable, change value from 1 to -1 for countdown effect 🔄
Step4:
Now put a repeat control block just around the last two code blocks so that your timer will count down to zero. How many times should it repeat so that we end on zero? Ten!
Step5:
📢 Insert “say ‘Time’s up!’ for 2 seconds” block after repeat loop to announce end ⏰🔊 Ensure its outside loop to avoid repetitive announcements during countdown ⚠️
Step6: Code Complete
🤔 To incorporate the riddle, use “ask and wait” sensing block in a new script
🎩🔍 Pose the riddle: “What is full of keys but never opens a door?” Test your answer in 10 seconds! 🕰️🎶
🔄 YOUR TURN! Challenge yourself with:
- 🔊 Add a buzzer sound when timer hits zero!
- 🎭 Costume change for Abby post-question.
- ⏰ Attempt timer counting up to 10 instead of down to zero!