- Learnt30 min · what Scratch is, the editor, your first motion blocks
- Basic25 min · you build it yourself
- Challenge 1–327 min · a square, an S, an endless circle
- Extrabonus · write your initial in the air
Today’s Topic 3 min
- What is Scratch, and why learn it?
- Create your own Scratch account
- The Scratch editor — every part of the screen
- Your first motion blocks:
move (10) steps,turn cw (15) degrees,go to x: (0) y: (0) - Make the cat move in a square
Learning outcome
By the end of this lesson you will be able to:
- Log in to your own Scratch account. Click Create to open a new project.
- Point to the Stage, the Sprite panel, the Blocks Panel and the Script Area. Say what each one is for.
- Build a stack of blocks. It sets where the cat starts and which way it faces. Then it moves and turns the cat. Run it with the green flag.
Learnt — what Scratch is, and your first blocks 30 min
What is Scratch?
In Scratch you build programs by snapping blocks together, like LEGO. You do not type code. You drag a coloured brick into place and it works. With those bricks you can make animations, games and stories. A program is a set of instructions for the computer.
Why learn it? Scratch is free. It runs in any web browser. Sprites are the characters. Backdrops are the pictures behind them. They are free too. You can open anybody’s project. You can look inside to see how they made it.
Get your own Scratch account
Go to scratch.mit.edu. Click Join Scratch. You need your own account. At the end of every lesson, you send your teacher a link to your project.
| Step | What you type | Watch out |
|---|---|---|
| 1. Username | A nickname you will remember | Do not use your real full name |
| 2. Password | Something you can spell twice | Write it on paper and keep it in your desk |
| 3. Country | the world | — |
| 4. Birth month and year | Your own | — |
| 5. Gender | Your own | “Prefer not to say” is a real option |
| 6. Email | Yours, or a parent’s | You must open the email and verify |
Now sign in and click Create. A new empty project opens. The cat is already standing on the Stage.
The Scratch editor
This is the whole screen. Find each number on your own screen. Then read what it does.

| # | Part | What it is for |
|---|---|---|
| 1 | Blocks Panel | All the blocks, in nine colour groups. |
| 2 | Script Area | The big empty space you drag blocks into. Your program lives here. |
| 3 | Stage | The white box where sprites move. They cannot walk off it. |
| 4 | Green flag and red stop | The green flag runs your program. The red stop sign stops everything. |
| 5 | View modes | Small stage, big stage, or full screen with no code showing. |
| 6 | Sprite panel | All the characters in your project. Each one has a name, place, size and direction. |
| 7 | Add a sprite or a backdrop | The cat button adds a character. The picture button adds a background. A backdrop never moves. It sits behind everything. |
The three view modes
Button 5 changes how big the Stage is. Try all three.



The sprite’s own settings
Click your cat in the Sprite panel, under the Stage. This is what you see. You can change five things here with no blocks at all.

- Name — change the sprite’s name. When you have two sprites, give them real names. Then your code says Cat and Dog, not Sprite1 and Sprite2.
- x and y — where it is standing. Both boxes show 0, so this cat is in the middle.
- Show / hide — the two eye buttons. The open eye is on, so you can see the cat. The crossed eye hides it.
- Size — a percentage. 100 is normal, 50 is half, 200 is double.
- Direction — which way it faces. 90 is right.
The direction dial
Click the Direction box. A dial pops open.

- Click the Direction box to open the dial.
- Drag the purple arrow round to turn the cat.
- The three small buttons are the rotation style. This is how the sprite turns. It can turn all the way round, flip left and right only, or never turn. You use the middle one in Lesson 2. The first one is why your cat tips over today.
Adding a second character, and a background
Use the two round buttons at the bottom right to add things. Hold your mouse over one. More buttons slide out. You can upload your own, get a surprise one, paint your own, or pick one from the library.


The Stage is a grid
Every place on the Stage has two numbers, (x, y). The middle is (0, 0). x tells you how far across. y tells you how far up.
- Move right and x gets bigger. Move left and x gets smaller.
- Move up and y gets bigger. Move down and y gets smaller.
Drag the cat around with your mouse. Watch the x and y boxes in the Sprite panel change.
Nine colours of block
Every block has a colour. The colour tells you which group it comes from. Find these nine groups on the left of the Blocks Panel.
| Category | What it controls |
|---|---|
| Motion | Moving and turning the sprite |
| Looks | Costumes, speech bubbles, size, show and hide |
| Sound | Playing and changing sounds |
| Events | What starts a script |
| Control | Waiting, repeating, deciding |
| Sensing | Noticing touches, keys and the mouse |
| Operators | Sums, comparing numbers, random numbers |
| Variables | Remembering a number or some words |
| My Blocks | Blocks you invent yourself |
Today you only need two of them: Events to start the program, and Motion to move the cat.
Your first two blocks
- Open Events. Drag
when flag clickedinto the Script Area. - Open Motion. Drag
move (10) stepsunderneath it. - Look for a faint white line before you let go. It means the two blocks will snap together.
- Click the number and change it to 100. Then click the green flag.
The first block has a rounded top. That shape means “nothing can go above me”. We call it a hat block. A script is a stack of blocks that run together. Every script starts with a hat block.
when flag clicked
move (100) steps
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Change the number, change the jump
The white circle in the block is a box. You can type in it.
- Click the white circle inside
move (100) steps. - Type a new number. Try 10. Then try 200.
- Click the green flag.
- Watch how far the cat goes.
move (10) steps
move (100) steps
move (200) steps
One step is one pixel. A pixel is one tiny dot on the screen. The Stage is 480 pixels wide. So 100 steps is about a fifth of the way across.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Repeat — one jump becomes a walk
One big jump is not a walk. The cat just pops up somewhere else. To make it travel, cut the trip into small pieces. A repeat block runs the blocks inside it again and again.
- Open Control. Drag
repeat (10)into the Script Area. - Drop
move (10) stepsinside the mouth of the repeat block. - Click the green flag and watch the cat walk.
when flag clicked
repeat (10)
move (10) steps
end
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Faster, or further?
Two numbers, two different jobs. It is easy to mix them up:
- A bigger number in the repeat block means further. More pieces of the trip.
- A bigger number in the move block means faster. Bigger pieces, same number of them.
Try both now. Change one number at a time. First, say out loud what you think will happen.
Always start from the same place
Click the flag three times. The cat drifts off the edge. This is because it starts where it stopped last time.
Fix it. Tell the cat where to start. Drag go to x: (0) y: (0) right under the hat block.
when flag clicked
go to x: (0) y: (0)
repeat (10)
move (10) steps
end
Turning
turn cw (15) degrees spins the cat clockwise (to the right). turn ccw (15) degrees spins it anticlockwise (to the left).
Turning never moves the cat. It only changes which way the cat points. The way it points decides where the next move block sends it.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
One turn cw (90) degrees snaps round straight away. To watch the turn, break it into small turns. You did the same with the walk.
when flag clicked
repeat (9)
turn cw (10) degrees
end
Setting the starting direction
Direction is a number too:
- 90 is right, 0 is up
- −90 is left, 180 is down
A sprite keeps the last direction it had. So if your script turns the cat, set its direction at the start. Use point in direction (90 v). It works like setting the position.
Basic — now build it yourself 25 min
Your teacher showed you all of that. Now you do it, on your own computer.
Your target: a cat that
- always starts in the middle, facing right,
- walks 200 steps,
- then turns a quarter-turn.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Step 1 — open a fresh project
Sign in. Click Create. Rename the project T1.1 – your name in the box at the top.
Step 2 — the hat block
Events → drag when flag clicked into the Script Area. Click the flag. Nothing happens. That is right. The hat block has nothing to do yet.
Step 3 — set the starting position
Motion → snap go to x: (0) y: (0) under the hat. Now drag the cat anywhere with your mouse. Click the flag. It jumps back to the middle.
Step 4 — set the starting direction
Snap point in direction (90 v) underneath. Now spin the cat with the direction dial in the Sprite panel. Click the flag again. It straightens up.
Step 5 — walk
Snap move (200) steps on the end. Click the flag. The cat jumps to the right side of the Stage.
Step 6 — make the walk visible
Put the move block inside repeat (20). Change it to move (10) steps. Twenty tens is still 200. But now you can watch the cat walk there.
Step 7 — turn at the end
Snap turn cw (90) degrees after the repeat block. Outside it, not inside. Click the flag. The cat walks across. Then it faces down.
Step 8 — check your work against this
when flag clicked
go to x: (0) y: (0)
point in direction (90 v)
repeat (20)
move (10) steps
end
turn cw (90) degrees
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Why does it do something different every time I click?
You are missing one of the two setup blocks. Without go to x: (0) y: (0), the cat starts where it stopped last time. Without point in direction (90 v), it faces the way it faced last time. Put both right under the hat block, before the repeat.
Move the cat in a big square
Send the cat round a square. Bring it back to where it started.
- Every side is 200 steps.
- Every corner is a 90 degree turn.
- It starts in the same place every run.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Teacher reveal — the square
when flag clicked
go to x: (-100) y: (100)
point in direction (90 v)
repeat (4)
repeat (20)
move (10) steps
end
turn cw (90) degrees
end
One side and one corner, done four times. That is the idea the challenge is looking for. 360 ÷ 4 = 90, so a 90 degree turn at each corner brings the cat back to direction 90.
20 × 10 = 200, so the inner repeat (20) walks one full side. It is also why the embed is watchable. The short way — repeat (4) holding move (200) steps and turn cw (90) degrees — draws the same square in about four frames, so nobody sees the cat move. Both are correct. Accept either, then ask the pupil to make theirs visible.
Can you make an “S” shape?
This is a block S. It has no curves. It has straight lines and 90 degree corners only. You used both in the square.
- Five straight lines: three long ones and two short ones.
- Four corners, all 90 degrees.
- The first two corners turn left. The last two turn right.
The change of turn in the middle makes the S. Without it, you get a spiral.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Teacher reveal — the S
What your pupil builds. Five moves and four turns, in this order:
when flag clicked
go to x: (100) y: (120)
point in direction (-90 v)
move (200) steps
turn ccw (90) degrees
move (120) steps
turn ccw (90) degrees
move (200) steps
turn cw (90) degrees
move (120) steps
turn cw (90) degrees
move (200) steps
The cat starts at the top right facing left, the way a child writes an S. Two left turns then two right turns cancel out, so it finishes facing left again. A mirrored S — start at the bottom left facing right, turn right twice then left twice — is equally correct.
What the embed above runs. The same route, with every stroke broken into small steps so the class can watch it happen. Five move (200) steps blocks draw the letter in five frames and nobody sees a thing.
when flag clicked
go to x: (100) y: (120)
point in direction (-90 v)
repeat (20)
move (10) steps
end
turn ccw (90) degrees
repeat (12)
move (10) steps
end
turn ccw (90) degrees
repeat (20)
move (10) steps
end
turn cw (90) degrees
repeat (12)
move (10) steps
end
turn cw (90) degrees
repeat (20)
move (10) steps
end
How do you make the cat keep moving in a circle?
Not one lap. Endless laps.
A circle is lots of tiny moves. After each move comes a tiny turn. You did something like this in the Learnt part. There, nine small turns made one quarter-turn.
The cat must keep going round, even when you are bored of watching. Only the red stop sign stops it.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Teacher reveal — the endless circle
when flag clicked
go to x: (0) y: (115)
point in direction (90 v)
forever
move (10) steps
turn cw (5) degrees
end
forever is the block this challenge exists to make pupils want. A repeat (72) also draws one lap, because 72 × 5 = 360. But it stops, and the brief says it must not. Look at the shape of forever: there is no bump underneath, because nothing can run after it.
The two numbers decide how big the circle is. A move of 10 with a turn of 5 gives a circle about 115 wide from the middle — the one drawn above. Bigger moves make a bigger circle; bigger turns make a smaller one. Any pair that keeps the cat on the Stage is correct.
Write your initial in the air
You can make the cat walk straight lines, sharp corners and curves. That is all you need to walk the shape of a letter.
Make the cat walk the first letter of your name, as a capital. Make it big. It should fill most of the Stage. There is no pen and no drawing. You just watch the cat’s path. A friend watching should know the letter before the cat finishes.
How to use this: Click the green flag to start it. Nothing else to press — watch it through, then use ↺ Reset to run it again.
Summary 5 min
- Scratch is free block coding. You build programs by snapping bricks together.
- You have your own verified account. You hand work in by sharing a project link.
- The Stage is a grid. The middle is (0, 0). x runs −240 to +240. y runs −180 to +180.
- Every script starts with a hat block.
when flag clickedis the one you will use most. - Motion blocks move and turn the sprite.
- Control blocks like
repeat (10)andforeverdo the same thing over and over. - Set the starting position and the starting direction. If you do not, your program does something different on its second run.
- Sprite
- A character on the Stage that follows the blocks you give it.
- Hat block
- A block with a round top. It starts a script. Nothing can go above it.
- Step
- A move of one pixel, in the way the sprite is facing.
- Direction
- Which way a sprite faces: 90 is right, 0 up, −90 left, 180 down.
Hand in
Save your project. Click Share. Send the link to your teacher. Missions you finish at home count too. Bring the link to the next class and claim your Adcoins.