Theory
🤔 6. Do something over and over
🔄 Learn to repeat actions efficiently on the stage.
📚 Understand the Repeat and Repeat Forever blocks.
🔁 Avoid using multiple blocks for the same action.
🎓 Gain efficiency in programming repetitive actions.
How to Make It:
- Let’s take a look at your script from the previous activity:
Animations:
🕵️♂️ Delete the last four blocks.
👁️🗨️ Left with a single Hide block and a single Show block.
🔁 Use a Repeat block to run the pattern multiple times.
- Now, tap the orange category of blocks to reveal the control blocks.
- Drag the Repeat block to the programming area and position it around the two purple looks blocks.
- 💬 You can change the number in the bubble of the Repeat block.
🔄 Adjust the number to repeat actions.
💡 Use a big number for multiple actions.
- 💭 Want your cat to disappear and reappear forever?
🔄 Instead of Repeat, use Repeat Forever block.
🛑 Stop a repeating script by tapping the red stop sign button.