How to make a game in Scratch, step by step
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. This tutorial makes a catch game: move the cat, catch apples, dodge a bomb, win at 10 points.
Checked . Roam is our app, and the Roam team wrote this page. See also: Scratch games to make, Best Scratch games.
Build a catch game, step by step
- 1. Set up. Go to scratch.mit.edu and click Create. The cat sprite is your player. Pick a backdrop from the bottom-right corner.
- 2. Arrow-key movement. On the cat, add "when green flag clicked", then "forever". Inside it: "if key right arrow pressed then change x by 10", and the same for left with -10.
- 3. Add a falling apple. Add the Apple sprite. On green flag, "go to x: (pick random -220 to 220) y: 170", then forever "change y by -5". If its y position is below -170, send it back to the top.
- 4. Make a score. In Variables, click Make a Variable and name it score. Set it to 0 on green flag. In the apple's loop, "if touching Cat" then "change score by 1" and send the apple back to the top.
- 5. Win. On the cat: "wait until score = 10", "say You win! for 2 seconds", then "stop all".
- 6. Lose. Duplicate the apple, paint a bomb in its Costumes tab and remove the score blocks. If it touches the cat: "say Game over" and "stop all".
- 7. Share. Sign in, give the project a title and click Share. Anyone can now play it on the Scratch website.
Next: levels, a platformer or an obby in Scratch
Once the catch game works, the same blocks grow into the games people search for most. For finished projects to learn from, see the best Scratch games.
- Levels. Make a level variable. Instead of "stop all" at 10 points, "change level by 1", "next backdrop", set score to 0 and make the apple fall faster.
- Platformer jump. Make a y speed variable. Forever: "change y speed by -1" and "change y by y speed". If touching the ground color, set y speed to 0. When the up arrow is pressed on the ground, set y speed to 12.
- Obby. Draw platforms on the backdrop and paint the lava red. "If touching color red", send the player back to the start. A flag sprite at the end is the win.
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 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. Roam is rated 13+ on the App Store. A younger Scratch maker can do this with a parent, on the parent's phone.
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. Roam is rated 13+ on the App Store.
Try: "catch falling apples in a basket, dodge bombs, speeds up every 5 points, first to 10 wins, 2 players"Roam ("Roam - Make Games" on the App Store) is an iPhone app where you play games and make your own by describing them or from a photo. It is free to download and play, and making games works without a subscription; optional Spark and Reality plans and credit packs add more creation. Android: pre-register on Google Play.
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.
Is Scratch a programming language?
Yes. It is a visual programming language: each block is a command, and stacks of blocks are programs with loops, if statements and variables, without typing code.
Can a 12-year-old make a game in Scratch?
Yes. Scratch is designed for ages 8 to 16, though anyone can use it, and a catch game like the one above is a good first project. ScratchJr is the version for ages 5 to 7.
Can AI make a Scratch game for me?
A chatbot can list the blocks for each step, but you still snap them together in Scratch. Roam does not make Scratch projects. It makes its own games from a sentence, and you play them in Roam on iPhone. Roam is rated 13+ on the App Store.
Sources, checked November 5, 2026
- Scratch is free for everyone and run by the independent nonprofit Scratch Foundation since 2019: scratchfoundation.org
- Scratch was developed at the MIT Media Lab (Lifelong Kindergarten group): en.wikipedia.org
- Scratch app for offline creation on Windows, macOS, ChromeOS and Android: scratchfoundation.org
- Scratch is a block-based visual programming language designed primarily for ages 8 to 16: en.wikipedia.org
- ScratchJr is for ages 5 to 7: scratchfoundation.org
Product names belong to their owners. Roam is not affiliated with them.
Keep exploring
- How to make a clicker game
- How to make a game for kids
- How to make a 2D game
- How to make a game and make money from it
- How to make a game concept
- How to make a game on iPad
More on Roam: All Roam games Games to play, by kind
