انتقل للمحتوى
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

Gliding and changing

Section 2: MotionLesson 2.3 · ⏱ 6 min

glide is like go to, but Robo moves to the place slowly while you watch. change x by moves him a little right or left from where he is now.

Blocks: when 🚩 clicked, go to x: (-150) y: (0), glide (2) secs to x: (150) y: (0), change y by (50)
🖥️ What happens on the stage?
Robo starts on the left of the stage, glides to the right in two seconds, then rises 50 steps.
The stage after running the program in Robo Block
📌 Note
go to goes to an exact place. change x and change y add to the place where he is now.

📌 Another example: the lift

change y lifts Robo 80 from where he is each time, then glide brings him slowly down to the ground floor.

Blocks: when 🚩 clicked, go to x: (0) y: (-120), wait (0.5) seconds, change y by (80), wait (0.5) seconds, change y by (80), wait (0.5) seconds, change y by (80), wait (0.5) seconds, glide (1) secs to x: (0) y: (-120)
Going up step by step
Going up step by step
At the top
At the top
Glided down
Glided down
✍️ Practise
Make Robo glide in a triangle: three points, then back to the start.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

Make Robo glide from the far left to the far right in 3 seconds.

👀 Show the solution
Blocks: when 🚩 clicked, go to x: (-200) y: (0), glide (3) secs to x: (200) y: (0)
Halfway there
Halfway there
Medium

Make Robo glide around a square with sides of 200 and come back to the start.

👀 Show the solution
Blocks: when 🚩 clicked, go to x: (-100) y: (-100), glide (1) secs to x: (100) y: (-100), glide (1) secs to x: (100) y: (100), glide (1) secs to x: (-100) y: (100), glide (1) secs to x: (-100) y: (-100)
Back at the starting point
Back at the starting point
Hard

Without glide: make Robo move right in 3 small steps (50 each time) from x = -150.

👀 Show the solution
Blocks: when 🚩 clicked, go to x: (-150) y: (0), wait (0.5) seconds, change x by (50), wait (0.5) seconds, change x by (50), wait (0.5) seconds, change x by (50)
Reached the middle
Reached the middle
Finished the lesson? Mark it so your progress counts.