انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents

Repeat forever

Section 3: Sound and repeatingLesson 3.3 · ⏱ 5 min

The ♾️ block at the end of the program makes it start again forever. The cat walks, and when she leaves on one side she comes in on the other side.

🧩 The cat walks forever
Blocks of 🐱 Cat
  1. When 🚩 is tapped
  2. Move right ➡️ 2
  3. Start again forever ♾️

📌 Another example: Robo hops without stopping

♾️ at the end of the program sends it back to the start: he hops, and hops, and hops… until you tap ⏹.

🧩 Robo hops without stopping
Blocks of 🤖 Robo
  1. When 🚩 is tapped
  2. Hop 🦘
  3. Start again forever ♾️
Hopping
Hopping
Still hopping
Still hopping
✍️ Practise
The cat goes for a walk.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

The cat walks a step and changes her costume without stopping.

👀 Show the solution
🧩 Solution
Blocks of 🐱 Cat
  1. When 🚩 is tapped
  2. Move right ➡️ 1
  3. Next costume 👕
  4. Start again forever ♾️
The result on the stage
The result on the stage
Medium

Robo goes up and down without stopping (like a ball).

👀 Show the solution
🧩 Solution
Blocks of 🤖 Robo
  1. When 🚩 is tapped
  2. Move up ⬆️ 1
  3. Move down ⬇️ 1
  4. Start again forever ♾️
The result on the stage
The result on the stage
Hard

Robo turns without stopping, and the cat hops without stopping, at the same time.

👀 Show the solution
🧩 Solution
🤖 RoboBlocks of 🤖 Robo
  1. When 🚩 is tapped
  2. Turn right ↻ 3
  3. Start again forever ♾️
🐱 CatBlocks of 🐱 Cat
  1. When 🚩 is tapped
  2. Hop 🦘
  3. Start again forever ♾️
Both are moving
Both are moving
Finished the lesson? Mark it so your progress counts.