Programming Part - 1
11 Minutes · Module 5 - Celebration
Scratch Junior programming for kids: code an animal race with speed blocks and ribbon animations in page one. A Tamil coding lesson.
- Setting different speeds for Tom, a pig, and a penguin
- Hiding the ribbon on touch using the start-on-touch block
- Showing the cut ribbon using a timer and linking to page two
What this lesson teachesRead the lesson as text
An animal race project in Scratch Junior is programmed by combining motion blocks with control blocks to regulate how fast characters move across the screen. By pairing speed settings with touch-triggered and timed looks blocks, sprites can compete in a race and trigger realistic finish line reactions.
Setting speeds for the racers
Each character requires a trigger block to begin moving when the green flag is clicked. In the orange control category, the speed block with a running person icon provides three choices: slow on the left, medium in the center, and fast on the right. Tom is assigned the fastest speed, the pig receives medium speed, and the penguin is set to slow. All three characters use a blue motion block set to seventeen steps to the right, allowing the same block chain to be shared among racers before adjusting individual speeds.
Animating the finish line ribbons
- The race uses two separate ribbon objects: an uncut ribbon and an already cut ribbon.
- The uncut ribbon uses the start-on-touch block from the yellow trigger category so it reacts only when Tom contacts it.
- A purple hide block makes the uncut ribbon disappear immediately upon being touched.
- The cut ribbon starts hidden on the green flag trigger and waits using a clock timer block from the orange control category.
- Setting the timer to twenty units matches Tom's arrival time, after which a purple show block makes the cut ribbon appear.
Switching to the second page
- The undo button at the top of the stage resets all characters to their starting spots between test runs.
- Full screen mode lets the project run from start to finish to confirm which character reaches the finish line last.
- The penguin finishes in last place behind Tom and the pig.
- Removing the penguin's red end block and attaching a red page two block automatically transitions the screen once the entire race ends.
Part of the course
Scratch Junior
More in Module 5 - Celebration
- 1Programming Part - 1Now playing
- 2Programming Part - 28 Minutes