Skip to content

1. Events and Sprites

A sprite is a character or object on the stage. An event block is what starts a script running — nothing happens in Scratch until an event fires.

The most common event blocks:

when green flag clicked      <- starts when you press the green flag
when this sprite clicked     <- starts when someone clicks the sprite
when key [space] pressed     <- starts when a key is pressed

Any stack of blocks snapped underneath an event block runs top to bottom — this is the sequence from Unit 1, now made of blocks instead of a flowchart.

when green flag clicked
say [Hello!] for (2) seconds

Try it

Make your sprite say something when the green flag is clicked, and something different when the sprite itself is clicked.

Tip

Event blocks are always yellow and always go on top — nothing snaps above them.

Next: Variables →