Because every student should have the opportunity to learn how to code

User Tools

Site Tools


Activity : Build Your Own Scrolling Game

Ninja Instructions | Mentor Notes


In this activity you will create a basic side scrolling game.


15-30 minutes


  1. Open up a new program area in Scratch or begin by remixing our Scrolling Starter program.
  2. If you are creating this program completely on your own:
    • Add a sprite for an object that will move through your world like a helicopter or flappy bird.
    • Add a sprite for the obstacles that you will be avoiding.

      You may want to make several different costumes for this object with the “opening” at different places so that you can add some challenge to your game.
    • Design your basic backdrop.
    • Put them all together so you have a simple game showing.
  3. If you are using our sample starter code, take a look at what we have for these features.
  4. Now consider the following code:
    • We need to add some code to your object (bird, helicopter, etc) so that it falls with gravity.
    • Then we need to allow the item to be interactive - that is, to “fly” when a key is pressed.
    • Next, we need to add the code that uses clones of your obstacles to produce multiple random obstacles over time.
    • Finally, we need to have code that detects when you crash into an obstacle.

Great. Now you have a basic scrolling game. Try some of these modifications.

  • Make a variable to keep score.
  • How do you add difficulty to the game by increasing speed of the obstacles or the rate at which the helicopter drops? (Hint, you can watch the score or use a timer)
  • Can you add in the concept of multiple lives?
  • How can you add levels by changing the backdrops or the types of obstacles.

The following blocks make great blocks to play around with as part of this game:

Things to think about when you are done

  • What was challenging about designing this game?
  • What feature are you most proud of?

Sharing your project in the studio

The studio for this activity is located at:


This project is based on materials from the the Creative Computing curriculum by Brennan, Balch, and Chung.

lev4/act_scrolling_s.txt · Last modified: 2015/10/15 11:55 by jbschafer