Building a button with 'when this sprite clicked'
An event block that starts its script when the user clicks that sprite, so the sprite works like a button. Add a label to the sprite and a colour change to show it can be clicked.
Understanding Building a button with 'when this sprite clicked' in Years 5–6 Creating Digital Solutions
What it does: A text label like Start on the sprite tells the user what will happen when they click it. The click event block starts the script, and the next block is the action that happens when the button is pressed. A colour change shows the user the button has been clicked. An empty script gives no feedback. The label must be part of the sprite's costume so users can see it on the stage. Labels and colour changes are feedback that help users know what is clickable and what happened.
Common mistakes: The last block should set the colour effect back to 0. If it sets 50 again, the button stays changed and never returns to normal. A sprite only works like a button if its script starts with 'when this sprite clicked'. The green flag block starts the script when the flag is clicked, not the sprite.
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 61–74) 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.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
when this sprite clickedFill in the Blanks
Spot the Error
Student with a class code? Join your class →