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

๐Ÿ› ๏ธ Section project: fireworks

Section 10: Clones: one character, many copiesLesson 10.3 ยท โฑ 10 min
๐ŸŽฏ Project goal
25 clones appear in random places, grow and change colour, then disappear.
๐Ÿงฉ The original
Blocks: when ๐Ÿšฉ clicked, hide, repeat (25)
๐Ÿงฉ Every clone
Blocks: when I start as a clone, go to (random position), set size to (15) %, show, repeat (12), delete this clone
Fireworks in different colours
Fireworks in different colours
New clones growing and changing colour
New clones growing and changing colour

๐Ÿ“Œ Another example: a ring of sparks

Robo makes 12 clones and turns 30 after each one, so every spark flies off in a different direction and changes colour.

Blocks: when ๐Ÿšฉ clicked, hide, go to x: (0) y: (20), set size to (25) %, repeat (12)
Blocks: when I start as a clone, show, repeat (10), delete this clone
The burst
The burst
The sparks fly apart
The sparks fly apart
โœ๏ธ Practise
Make your own fireworks: choose a costume, the number of sparks and their colours.
โœ๏ธ Practise here in the lessonor open the lab in a new page โ†—

๐ŸŽฏ Challenge yourself

Easy

Add a sound to every spark: play note inside when I start as a clone.

๐Ÿ‘€ Show the solution
Blocks: when ๐Ÿšฉ clicked, hide, set size to (25) %, repeat (6)
Blocks: when I start as a clone, show, play note (72) for (0.25) beats, repeat (10), delete this clone
The result on the stage
The result on the stage
Medium

Three bursts in random places, one second apart.

๐Ÿ‘€ Show the solution
Blocks: when ๐Ÿšฉ clicked, hide, set size to (20) %, repeat (3)
Blocks: when I start as a clone, show, repeat (10), delete this clone
Three bursts
Three bursts
Hard

A rocket: Robo glides from the bottom to the top, then hides and bursts into 12 sparks where he is.

๐Ÿ‘€ Show the solution
Blocks: when ๐Ÿšฉ clicked, set size to (25) %, go to x: (0) y: (-150), show, glide (1) secs to x: (0) y: (80), hide, repeat (12)
Blocks: when I start as a clone, show, repeat (10), delete this clone
It burst at the top
It burst at the top
Finished the lesson? Mark it so your progress counts.