// halloween special

Code over Candy

Build your own Catch the Ghost game in Scratch, one spooky step at a time. Made for ages 5โ€“10, and no coding experience needed.

๐ŸŽƒ Download the worksheet (PDF) ๐Ÿ‘ป Get the Scratch projects
๐Ÿ‘ป Ages 5โ€“10 โฑ About 1 hour ๐Ÿ’ป Free ยท works in a web browser
// scratch projects

Load a ready-made project

Download a project, then open it in Scratch to keep coding.

How to open it: go to scratch.mit.edu, click File โ†’ Load from your computer, and choose the file you downloaded.

// pick your scene

Spooky backdrops

All six are already inside the projects (click Stage โ†’ Backdrops). To use one in your own project, download it, then hover over the backdrop button in Scratch and click Upload.

// step by step
1

Pick your spooky scene

  • Click the picture button at the bottom right and pick a spooky backdrop.
  • Click the cat button next to it, find the Ghost and click it.
  • Bonus: add a Bat too!
2

Make your ghost fly

Click your ghost, then find these colours and snap them together:

when green flag clicked forever glide 1 secs to random position

Click the green flag. Your ghost flies!

3

Catch the ghost!

Add these blocks to your ghost too:

when this sprite clicked say Boo! for 2 seconds start sound (pick a spooky one)

Click the green flag. Can you catch your ghost?

โ˜…

Super challenges (ages 8+)

  • Add a score: go to Variables โ†’ Make a Variable โ†’ call it score. Put change score by 1 under when this sprite clicked.
  • More ghosts: right-click your ghost and choose duplicate. How many can you catch?

For grown-ups

Scratch is free and runs in any web browser. To save a project, ask a grown-up to help create a free Scratch account at scratch.mit.edu. Want more sessions like this? Follow @codeeclipsehq on Instagram.

Explore Code Eclipse