Programming Part - 2
8 Minutes · Module 5 - Celebration
Scratch Junior programming for kids: code multi-page scenes with motion, timer, and show-hide blocks in this Tamil coding lesson.
- Moving the ranger to award a prize and linking to page 3
- Using hide, timer, and show blocks to make Angel appear
- Moving Tom and Ben to corners using timers and motion blocks
What this lesson teachesRead the lesson as text
Scratch Junior allows creators to build connected multi-page animations by combining motion blocks, page transition blocks, timers, and visibility controls. Characters can complete specific movements on one page before sending the viewer automatically to the next scene, where scripted delays control when new characters appear and how others react.
Moving characters and changing pages
A script begins by dragging a flag trigger block from the yellow trigger category into the programming area. Blue motion blocks move characters across the screen, such as sending a ranger to the left with step numbers until he reaches Tom. Instead of finishing with a regular red end block, placing a numbered page end block automatically transfers the viewer from page two to page three as soon as the movement stops. Characters can be returned to their starting positions by using the undo button.
Hiding and showing characters with timers
The purple looks category contains blocks that control whether a character is visible on the stage. To make Angel appear out of a prize, she is first given a hide block directly after the flag trigger so she remains hidden when the scene begins. An orange control block with a timer is placed next and set to ten seconds to delay her entrance. A show block follows the timer to reveal her on the screen, and the script is finished with an end block.
Delaying reactions and copying code
Other characters can react after a delay by setting their timers to run longer than the entrance delay. Tom uses a timer set to twelve seconds so he only reacts after Angel appears, followed by blue motion blocks moving him two steps to the left corner. A completed script can be duplicated quickly by dragging it directly onto another character icon. For Ben, the copied script only needs its blue motion block changed from a left arrow to a right arrow so he moves two steps toward the right corner.
Testing and saving the project
Projects can be previewed in full screen to check that the story flows smoothly across all pages from start to finish. In full screen, clicking the flag runs the race on page one, the prize delivery on page two, and the surprise reaction on page three. Tapping the escape button returns the user to the programming area, and the yellow button in the top right corner allows the project to be named and saved.
Part of the course
Scratch Junior
More in Module 5 - Celebration
- 1Programming Part - 111 Minutes
- 2Programming Part - 2Now playing