2 of 1 ·Blocks and scripts

Lesson 2 · Creative Coding
Snapping instructions together.
Meet Your Coding Playground
In Scratch, a sprite is a character and the stage is its space. Find the cat, add one movement block and run it. Explore one control at a time.
Click to zoomBlocks are the instructions you already writeEvery block is one instruction. Snap them top to bottom and you have a script — which is just an algorithm, exactly like the ones you wrote on paper last month.
The computer runs a script from the top down, one block at a time, in order.
If that sounds familiar, it should. The sequencing rules from Chapter 2 haven't changed one bit. Blocks just make the order impossible to get accidentally wrong, because they physically snap together.
Click to zoomThe colours mean somethingThe palette is grouped by colour, and each colour is a category of instruction:
When you're hunting for a block, ask what kind of thing you want first, then go to that colour. It's much faster than scrolling through everything.
7 more parts in this lesson
Walkthroughs, code labs, mini-games and the checkpoint quiz unlock when you buy the course.