← Years 5–6 Creating Digital Solutions

Stacking blocks in sequence

Blocks snapped under one another run from top to bottom, one at a time, so the order of the blocks changes what the sprite does.

Understanding Stacking blocks in sequence in Years 5–6 Creating Digital Solutions

What it does: The move block is on top so it runs first. The say block is snapped underneath so it runs second. Dragging the say block above the move block changes the order, so the sprite now speaks before it moves. Blocks must snap together in a stack. A block left on its own is not part of the script and will not run with it. Swapping blocks can change what happens first, next and last, so the sprite does something different. The wait block holds the script still for a short time. Then the next block under it runs. Blocks run from the top down, so this block finishes before the block snapped under it begins.

Common mistakes: Blocks run from top to bottom, so the countdown must go 3, 2, 1, Go!. Line 4 should be 'say 1 for 1 seconds'. A 4 in the wrong place breaks the order. A script needs an event block at the top to start it. Line 1 should be 'when green flag clicked', so the blocks below it run when the flag is clicked.

Class: _____________________  ·  Name: _____________________  ·  Date: _________

Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.

This module's key terms are also in a printable crossword (Modules 41–50) and word search (Modules 41–74).

Take this worksheet further — free with Cloodit

Each concept is reinforced from every angle — learned, then applied, then tested.

Learning
Duo
A script has these blocks stacked: say Hello! for 2 seconds, then move 10 steps. Which block runs first?
say Hello! for 2 secondsmove 10 steps
Matches
Stack: say (Time to go!), then move (50) steps. Goal: the sprite moves and THEN says Time to go!
↓
The blocks are in the wrong order. The say block is on top so it runs first. Drag move above say.
Applying
Meanings
Term
sequence
Meaning
Blocks snapped under one another run from top to bottom, one at a time, so the order of the blocks changes what the sprite does.
Practice
when green flag clicked
Testing
Gaps
(10) steps
Check Answer
Spots
3say 2 for 1 seconds
4say 4 for 1 seconds

Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.

The 'Blue-Ringed Octopus' badge — Reef Legend, one of Cloodit's 106 collectible badges
Students earn collectable badges

Over 100 of them, across seven natural biomes.

Study Buddy
Students build a real study resource

Turns their work into revision material ready for Flash Cards and Exam study.

Diamond Dash — one of Cloodit's live, competitive Sprint games
Students lock in with Sprints

Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.

A Cloodit certificate of achievement, ready to personalise and print
Custom printable certificates

Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.

Quick Questions

1. A script has these blocks stacked: say Hello! for 2 seconds, then move 10 steps. Which block runs first?
A. move 10 steps
B. say Hello! for 2 seconds ✓
Blocks run from top to bottom, so the block at the top runs first.
2. How do you join a new block to a script?
A. Drop it far away from the script
B. Snap it under the block above it ✓
Blocks must snap together in a stack. A block left on its own is not part of the script and will not run with it.
3. Which statement is true about a stack of blocks?
A. The order of the blocks changes what the sprite does ✓
B. The order of the blocks never matters
Swapping blocks can change what happens first, next and last, so the sprite does something different.
4. You want a sprite to say Ready! and then wait 3 seconds. Which order is right?
A. say Ready!, then wait 3 seconds ✓
B. wait 3 seconds, then say Ready!
The say block is on top so it runs first. The wait block under it then pauses the script.
5. What does the wait 2 seconds block do in a stack?
A. It pauses the script for 2 seconds before the next block runs ✓
B. It makes the sprite move 2 steps
The wait block holds the script still for a short time. Then the next block under it runs.

Match the Pairs

move (10) steps → A motion block that runs first in a stack and moves the sprite forward before the next block under it runs
wait (1) seconds → A block that pauses the stack for one second before the next block underneath runs
Snapping a say block under a move block makes the sprite move first and then speak → move (10) steps say (Hello!)
Reordering blocks so say is on top makes the sprite speak first and then move → say (Hello!) move (10) steps
Stack: say (Time to go!), then move (50) steps. Goal: the sprite moves and THEN says Time to go! → The blocks are in the wrong order. The say block is on top so it runs first. Drag move above say.
Stack: say (Ready?), then say (Go!). Goal: the sprite says Ready?, pauses for 2 seconds, then says Go! → There is no wait block between the two say blocks. Without wait (2) seconds the messages change too fast to read.

Key Term

sequence
Blocks snapped under one another run from top to bottom, one at a time, so the order of the blocks changes what the sprite does.

Fill in the Blanks

1. when green flag clicked move (10) steps say [Hello!] for (2) seconds
Hint: Type the motion block word that makes the sprite travel forward before it speaks.
2. when green flag clicked say [Ready?] for (2) seconds wait (1) seconds
Hint: Type the block word that pauses the script before the next block runs.
3. // Wait 3 seconds, then speak wait (3) seconds say [Hi!] for (2) seconds
Hint: Type the number of seconds that the comment on the first line says to wait.
4. when green flag clicked move (10) steps say [I moved!] for (2) seconds
Hint: Type the looks block word that makes the sprite speak after it has moved.
5. when green flag clicked turn right (90) degrees move (10) steps
Hint: Type the motion block word that rotates the sprite before it moves.

Spot the Error

Question 1
A when green flag clicked
B say 3 for 1 seconds
C say 2 for 1 seconds
D say 4 for 1 seconds
E say Go! for 1 seconds
Line D — Blocks run from top to bottom, so the countdown must go 3, 2, 1, Go!. Line 4 should be 'say 1 for 1 seconds'. A 4 in the wrong place breaks the order.
Question 2
A turn 15 degrees
B move 50 steps
C wait 1 seconds
D say I moved! for 2 seconds
Line A — A script needs an event block at the top to start it. Line 1 should be 'when green flag clicked', so the blocks below it run when the flag is clicked.
Question 3
A when space key pressed
B wait 1 steps
C say Boo! for 2 seconds
Line B — The wait block counts in seconds, not steps. Line 2 should be 'wait 1 seconds' so the sprite pauses before it says Boo!.
Question 4
A when green flag clicked
B say I'm there! for 2 seconds
C move 100 steps
D say Made it! for 2 seconds
Line B — The sprite would say it has arrived before it has moved. Blocks run top to bottom, so line 2 should be 'say I'm off! for 2 seconds' and the arriving message belongs after the move.
Question 5
A when green flag clicked
B move 10 steps
C when space key pressed
D move 10 steps
Line C — An event block can only go at the top of a stack. In the middle it cuts the sequence in two. Line 3 should be 'turn 90 degrees' so the blocks run one after another.

Student with a class code? Join your class →