Ψ§Ω†ΨͺΩ‚Ω„ Ω„Ω„Ω…Ψ­ΨͺΩˆΩ‰
Robo EgyptRobo Egypt
☰ Course contents
Robo Junior: home
0. Lab tour1
1. The start: Robo walks5
2. Talking and looks6
3. Sound and repeating5
4. Messages and more than one character4
5. The project: a story from your imagination3
6. Turning, costumes and waiting5
7. Speed and bumping5
8. Drawing and writing on the stage3
9. The big project: an interactive story3

πŸ› οΈ Section project: a music show

Section 3: Sound and repeatingLesson 3.4 · ⏱ 10 min
🎯 Project goal
Two characters: Robo plays, and the cat dances. Everything starts when you tap 🚩.

Add the cat with βž•, then tap each character to code it.

🧩 A possible solution
πŸ€– RoboBlocks of πŸ€– Robo
  1. When 🚩 is tapped
  2. Play note 🎡 1
  3. Play note 🎡 3
  4. Play note 🎡 5
  5. Beat the drum πŸ₯
🐱 CatBlocks of 🐱 Cat
  1. When 🚩 is tapped
  2. Repeat πŸ” 3 times:
  3. ↳ Hop 🦘

πŸ“Œ Another example: Robo dances and the dog beats the drum

Two programs with ♾️: each character plays or dances without stopping.

🧩 Robo dances and the dog beats the drum
πŸ€– RoboBlocks of πŸ€– Robo
  1. When 🚩 is tapped
  2. Hop 🦘
  3. Start again forever ♾️
🐢 DogBlocks of 🐢 Dog
  1. When 🚩 is tapped
  2. Beat the drum πŸ₯
  3. Start again forever ♾️
The start of the show
The start of the show
The show goes on
The show goes on
✍️ Practise
The music show.
✍️ Practise here in the lessonor open the lab in a new page β†—

🎯 Challenge yourself

Easy

Robo welcomes the audience, then plays 3 notes.

πŸ‘€ Show the solution
🧩 Solution
Blocks of πŸ€– Robo
  1. When 🚩 is tapped
  2. Say πŸ’¬ β€œWelcome to the show! πŸŽ€β€
  3. Play note 🎡 1
  4. Play note 🎡 3
  5. Play note 🎡 5
The result on the stage
The result on the stage
Medium

Robo plays and then thanks the audience, and the cat hops 3 times, then says β€œBravo!”.

πŸ‘€ Show the solution
🧩 Solution
πŸ€– RoboBlocks of πŸ€– Robo
  1. When 🚩 is tapped
  2. Play note 🎡 1
  3. Play note 🎡 3
  4. Play note 🎡 5
  5. Say πŸ’¬ β€œThank you! πŸ™β€
🐱 CatBlocks of 🐱 Cat
  1. When 🚩 is tapped
  2. Repeat πŸ” 3 times:
  3. ↳ Hop 🦘
  4. Say πŸ’¬ β€œBravo!”
The end of the show
The end of the show
Hard

A tune repeated twice with the drum, then β€œThe end πŸŽΆβ€, and the cat dances (costume and hop) 4 times.

πŸ‘€ Show the solution
🧩 Solution
πŸ€– RoboBlocks of πŸ€– Robo
  1. When 🚩 is tapped
  2. Repeat πŸ” 2 times:
  3. ↳ Play note 🎡 1
  4. ↳ Play note 🎡 3
  5. ↳ Play note 🎡 5
  6. ↳ Beat the drum πŸ₯
  7. Say πŸ’¬ β€œThe end πŸŽΆβ€
🐱 CatBlocks of 🐱 Cat
  1. When 🚩 is tapped
  2. Repeat πŸ” 4 times:
  3. ↳ Next costume πŸ‘•
  4. ↳ Hop 🦘
The whole show
The whole show
Finished the lesson? Mark it so your progress counts.