انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents
Robo Block: home
0. Lab tour1
1. Getting started5
2. Motion5
3. Looks and sound5
4. Events4
5. Loops5
6. Conditions and sensing4
7. Variables and randomness4
8. Project: the “Catch Robo” game3
9. Messages: characters talk to each other4
10. Clones: one character, many copies4
11. My Blocks: make a new block3
12. Operators and time4
13. The pro project: a jumping game4

Move and turn

Section 2: MotionLesson 2.1 · ⏱ 6 min

The Motion blocks (blue) move the character. move moves it forward in the direction it faces, and turn turns it.

Blocks: when 🚩 clicked, move (100) steps, turn ↻ (90) degrees, move (100) steps
🖥️ What happens on the stage?
Robo walks 100 steps forward, turns a quarter turn to the right, then walks 100 steps in the new direction.
The stage after running the program in Robo Block
📌 Note
A full turn is 360 degrees. Half a turn is 180, and a quarter turn is 90.

📌 Another example: Robo spins around

Four quarter turns (4 × 90 = 360) make a full turn, so Robo ends up facing the same way again.

Blocks: when 🚩 clicked, go to x: (0) y: (0), point in direction (90), turn ↻ (90) degrees, wait (0.5) seconds, turn ↻ (90) degrees, wait (0.5) seconds, turn ↻ (90) degrees, wait (0.5) seconds, turn ↻ (90) degrees, say (A full turn! 🌀) for (2) seconds
A quarter turn
A quarter turn
Half a turn
Half a turn
A full turn
A full turn
✍️ Practise
Make Robo turn half a turn and walk back to where he started.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

Start in the middle (go to 0, 0) and make Robo walk 150 steps to the right.

👀 Show the solution
Blocks: when 🚩 clicked, go to x: (0) y: (0), point in direction (90), move (150) steps
Reached x = 150
Reached x = 150
Medium

Robo faces right. Make him turn a quarter turn to the left, then walk 100. Where does he end up?

👀 Show the solution
Blocks: when 🚩 clicked, go to x: (0) y: (0), point in direction (90), turn ↺ (90) degrees, move (100) steps
He went up: y = 100
He went up: y = 100
Hard

Make Robo walk 3 sides of a square: walk, turn right 90, and repeat.

👀 Show the solution
Blocks: when 🚩 clicked, go to x: (-100) y: (0), point in direction (90), move (100) steps, turn ↻ (90) degrees, move (100) steps, turn ↻ (90) degrees, move (100) steps
Three sides
Three sides
Finished the lesson? Mark it so your progress counts.