Coding, AI & game designAges 8–144 min read
By Charlotte ·
How to Make a Pokémon-Style Battle Game in Scratch
A step-by-step guide to coding a turn-based, Pokémon-style battle game in Scratch: creatures, health bars, moves, turns and a win screen.

Turn-based battles are one of the best Scratch projects for children who love monster-collecting games. The idea is simple: two creatures take turns choosing moves until one runs out of health. Building it teaches variables, broadcasts and decision-making in code.
A turn-based battle needs five things: two creature sprites, a health variable for each, buttons for moves, a way to pass the turn, and a check for who has won. Build them in that order and test after each step. Design your own creatures and names; it is more fun and it keeps the project original.
Before you start
- A free Scratch account, or the offline editor.
- Two creature drawings of your own, made in the paint editor.
- About an hour for the first working version.
New to Scratch? Read how to get started with Scratch first.
Step 1: Creatures and health
- Draw or import two sprites: your creature on the left, the opponent on the right.
- Make two variables for all sprites: My HP and Enemy HP.
- When the green flag is clicked, set both to 50.
- Tick the variables so they show on the stage, and drag them above each creature.
A live class on this1-on-1 Advanced Scratch Coaching: Clones, Lists and Custom BlocksAges 10–15Step 3: Taking turns
- Make a variable called Turn and set it to player at the start.
- Only let the buttons work if Turn equals player.
- When the opponent receives enemy turn: wait one second, change My HP by a random number from -5 to -12, then set Turn back to player.
Add a short animation so the battle feels alive: glide the attacker ten steps forward and back, and make the creature that was hit flash by changing its ghost effect.
Step 4: Winning and losing
- After every change to health, check if Enemy HP is less than 1.
- If it is, broadcast you win, show a win backdrop and stop all scripts.
- Do the same check for My HP and a lose backdrop.
The battle carries on after someone has won. Put the health check before the broadcast that passes the turn.
Make it your own
- Add a Heal move that restores health but uses your turn.
- Give creatures types, so some moves do double damage.
- Limit strong moves to three uses with another variable.
- Add a second opponent that appears when the first is beaten.
More ideas for next projects are in our list of Scratch project ideas.
What parents can do next
- Let your child design the creatures and name the moves.
- Build one step at a time and test after each.
- Ask them to explain how the turn variable works.
- Share the finished game with a relative to play.
Frequently asked questions
What age is this project for?
Around 8 to 14. Younger children can build it with help; older ones can add types, items and levels.
Can we use real Pokémon characters?
It is better to invent your own. It avoids copying someone else's characters and makes the game truly your child's.
My child gets stuck on variables. What helps?
Show the variable on the stage and watch it change as the game runs. Seeing the number move makes the idea click.
What comes after a battle game?
A platformer or a maze game uses the same ideas with movement added.
Learn Scratch with a teacher
Live online Scratch classes, clubs and camps, from first projects to advanced games.






















































