
Follow our easy step-by-step coding instructions to create your very own superhero game in Scratch!
If you already have a Scratch account, click ‘Sign in’ and enter your login details. Otherwise click ‘Join Scratch’ and create your free Scratch account.

Changing the y value makes the hero move up.




The forever loop makes our code repeat over and over.

Each clone can either be a gem or a bomb.

Can you see the clones appearing on the right side of the stage?




If an item touches reaches the left side, then it will be deleted.

Add this code to check if the item is touching the hero.




If you enjoyed this coding activity be sure to sign up for our online coding classes for kids. Our coding classes are a lot of fun, but they’re also really effective at teaching coding techniques and challenging students to develop their skills. You’ll learn about loops, variables and functions - and everything in between - and you’ll build your own games and animations with a small group of kids of the same age and experience level as you.
Sign up for one of our free coding lessons