Skip to content

Scratch Ghostbusters Game

Create a fun paranormal activity game in Scratch with ghosts, scoring, and timers.

  • Raspberry Pi
  • Beginner
  • 60 minutes
  • 5 steps

Shop this project

Cart

You'll need

Prices from vilros.com. Tax and shipping at checkout.

Before you start, you'll need

  • Scratch 2 or 3 (online or offline)

Start from Scratch

About 5 minutes

Set up new project.

  1. Install Scratch 2 or 3 software.
  2. Ensure computer can run it.
  3. Open brand-new Scratch project.
  4. Prepare to animate sprites with random numbers.
  5. Set reactions to mouse clicks.
  6. Create timer for game.

You should see

Scratch project is open.

Design game with ghosts

About 15 minutes

Create ghost hunting game.

  1. Choose ghost sprite from Library.
  2. Set logical backdrop from Library.
  3. Code ghost to hide then show when green flag clicked.
  4. Ghost caught before it disappears.
  5. Name file and save.
  6. Test game.
  7. Offline Scratch: save to computer (no WiFi needed).

You should see

Basic ghost game works.

Add scoring system

About 10 minutes

Track caught ghosts.

  1. Create new variable called 'Score'.
  2. Code it to increase by 1 each ghost captured.
  3. Or set regular value per ghost.
  4. Display score on screen.

You should see

Scoring works correctly.

Add game timer

About 10 minutes

Set time limit.

  1. Vilros recommends starting with 10 seconds.
  2. Set however long you want each round to last.
  3. High-speed ghost chase.
  4. Game ends when timer reaches zero.

You should see

Timer counts down.

Enhance gameplay

About 20 minutes

Add variety and challenge.

  1. Play with size of ghosts.
  2. Control how well and how long they hide.
  3. Randomness of ghost paths.
  4. Use 'Set Size', 'Wait', 'Go To' coding.
  5. Add sound when you catch each ghost.
  6. Change number of ghosts per round.
  7. Create different sprite types (gain/lose points).

You should see

Game is customized and fun.

What to do next

Stuck? Contact Vilros Support with your board model and what you see on screen.