Module 4

Visual programming with Scratch

Quick-reference revision notes for parents.

4.1 Getting started with Scratch

Scratch is a block-based programming language. Drag colour-coded blocks together to build scripts.

Block categories (colours)

CategoryExamples
Motion (blue)move, turn, go to
Looks (purple)say, costume, change effect
Soundplay sound, change volume
Events (yellow)when green flag clicked, when key pressed
Control (orange)repeat, if-then-else, wait
Sensing (light blue)touching, key pressed, ask
Operators (green)+, =, and, random
Variables (orange)set / change / show variable

4.2 Sprites, costumes & naming

4.3 Duplicating sprites & backdrops

4.4 Interacting with keypresses and other sprites

Common event blocks:

Detecting collisions: if <touching [other sprite]?> then ….

4.5 Variables

A variable stores a value (number or text) you can use later. In a game it's how you keep score, lives, level.

Use if … then … else to react to variable values:

if <lives = 0> then
    say "Game over"
    stop all

4.6 Timers

Quick reference

← Back All modules Next → Practice questions