Roam

How to make a game in Scratch

Scratch is a free block-coding tool, made at the MIT Media Lab and now run by the nonprofit Scratch Foundation. You build on the Scratch website or in the Scratch app by snapping blocks together. This tutorial makes a catch game: move the cat, catch apples, dodge a bomb, win at 10 points.

Build a catch game, step by step

Make it feel better

Speed up the falling apple as the score grows, for example "change y by (-5 - score / 2)", so the last points feel tense. Add a sound such as Pop from the library and play it with "start sound" on every catch. Add a second variable, time, that counts down from 30 so there is a reason to hurry. Small touches like these make a ten-block game feel like a real one.

Playing it on a phone

Scratch projects run in a web browser, so a shared game can be played on a phone. Building is another story: Scratch is made for computers and tablets, not phone screens. Phones also have no arrow keys, so add two button sprites on screen with "when this sprite clicked" to move the cat.

If you want a game made for the phone from the start, describe the same idea to Roam on iPhone, for example "catch apples, dodge bombs, 10 to win". It comes back playable with art and sound, and you change it by asking.

Make the phone version with Roam

Same idea, no blocks: describe it on your iPhone and play it the same day, alone or with friends.

Try: "catch falling apples in a basket, dodge bombs, speeds up every 5 points, first to 10 wins, 2 players"

Questions people ask

Is Scratch free?

Yes. Scratch is free, run by the nonprofit Scratch Foundation. You build on the website or in the free Scratch app, which also works offline.

Can you make a Scratch game on a phone?

You can play shared Scratch projects on a phone, but Scratch is made for building on a computer or a tablet.

What age is Scratch for?

Scratch is designed for ages 8 to 16, though anyone can use it. ScratchJr is the version for ages 5 to 7.

Keep exploring