ุงู†ุชู‚ู„ ู„ู„ู…ุญุชูˆู‰
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

Your first program: Robo says hello

Section 1: Getting startedLesson 1.2 ยท โฑ 6 min

Every program starts with a hat block (its top is curved). The best known is the flag block: the blocks under it run when you click the flag ๐Ÿšฉ.

๐Ÿงฉ First program
Blocks: when ๐Ÿšฉ clicked, say (Hello!) for (2) seconds
๐Ÿ–ฅ๏ธ What happens on the stage?
When you click the flag, a speech bubble with Hello! appears above Robo for two seconds, then disappears.
๐Ÿ’ก Tip
Change the word inside the block: click Hello! and type your name. Change the number of seconds to see the difference.

๐Ÿ“Œ Another example: Robo says, then thinks

think draws a thought bubble (a cloud) instead of a speech bubble. Robo says his sentence for two seconds, then thinks for two seconds.

Blocks: when ๐Ÿšฉ clicked, say (I am Robo ๐Ÿค–) for (2) seconds, think (What will I learn today?) for (2) seconds
He saysโ€ฆ
He saysโ€ฆ
then he thinks
then he thinks
โœ๏ธ Practise
Make the program: drag the flag block from Events (yellow), then a say block from Looks (purple), snap it underneath, and click the flag.
โœ๏ธ Practise here in the lessonor open the lab in a new page โ†—

๐ŸŽฏ Challenge yourself

Easy

Make Robo say your name for 3 seconds.

๐Ÿ‘€ Show the solution
Blocks: when ๐Ÿšฉ clicked, say (My name is Youssef) for (3) seconds
Robo says the name for 3 seconds
Robo says the name for 3 seconds
Medium

Make Robo think โ€œHmm...โ€ for two seconds, then say โ€œGot it! ๐Ÿ’กโ€.

๐Ÿ‘€ Show the solution
Blocks: when ๐Ÿšฉ clicked, think (Hmm...) for (2) seconds, say (Got it! ๐Ÿ’ก) for (2) seconds
He thought, then he said it
He thought, then he said it
Hard

Make Robo say โ€œHelloโ€ for one second, then say a sentence that stays on and doesn't disappear. (Look for say without seconds.)

๐Ÿ‘€ Show the solution
Blocks: when ๐Ÿšฉ clicked, say (Hello) for (1) seconds, say (I'm always here ๐Ÿ‘‹)
The last sentence stays
The last sentence stays
Finished the lesson? Mark it so your progress counts.