Scratch Game
60 mins
225 points
What you need:
  • Computer/laptop

Scratch Meteor Shower Game

For this lesson, we are going to create a game where we avoid meteors that fall from the sky.

1 - Creating a Scratch project

Go to the Scratch website and create a new project and delete the cat sprite.

2 - Managing the Screens

For this project, we are going to have three different screens; Start Screen, Game Screen and Game Over Screen.

The Start Screen will appear when the game starts and will show the title of the game and the Start button.

The Game Screen will appear once we click the Start button. In this screen, our dog sprite and rock sprites will appear.

The Game Over Screen will appear when the game ends. In this screen, all the sprites will disappear and all the codes will stop.

3 - Adding the Start Button

We are going to add a start button to our project.

First, we need to add a new sprite that looks like a button.

This button sprite will be shown when the game starts and hides when clicked. This button will also change our backdrop to the Game Screen when it is clicked.

The code below will handle the showing, hiding and clicking of the start button.

when green flag clicked show when this sprite clicked switch backdrop to (Game Screen v) hide

4 - Adding the Dog sprite

For this part, we are going to add our main character, the dog.

We need to add a dog sprite and we can do that by going into the sprite library and looking for the dog sprite.

5 - Managing the Dog

When we start the game, we want to hide the dog sprite. We can use the code below to do this.

when green flag clicked hide

Now, we want our dog to show when we switch to our Game ScreenWe also want our dog to start at our desired location, x = 0 and y = -170. We can do that by following the code.

when backdrop switches to [Game Screen v] go to x: (0) y: (-170) show

Join our club 😃

To view the remaining 8 steps and access hundreds of other coding projects please login or create an account.

Copyright Notice
This lesson is copyright of Coding Ireland. Unauthorised use, copying or distribution is not allowed.

Scratch is developed by the Lifelong Kindergarten Group at the MIT Media Lab. It is available for free at
🍪 Our website uses cookies to make your browsing experience better. By using our website you agree to our use of cookies. Learn more