Level 1: Find the Bug
| Course: Scratch Programming | Level: Level 1 | Project 03 of 35 |
Official Raspberry Pi Project
This lesson is based on the official Raspberry Pi Foundation project. Open it alongside this guide to access the starter project, step-by-step instructions and community remixes.
### [🍓 Open "Find the Bug" on Raspberry Pi Projects →](https://projects.raspberrypi.org/en/projects/find-the-bug)
How to use it: Click the link above, then click See Inside on the Scratch project to explore the finished version. Use Remix to get your own copy to edit.
What You Will Build
Build a timed game where players click a hidden bug sprite to score points.
What You Will Learn
By the end of this project you will be able to:
- Use Events blocks to start scripts and respond to clicks
- Combine Motion, Looks and Sound blocks to create behaviours
- Use variables to track game state and scores
- Apply the specific Scratch concepts introduced in Level 1
You Will Need
| Item | Details |
|---|---|
| 🌐 Browser | Any modern browser — Chrome, Firefox or Edge |
| 🔶 Scratch account | Free at scratch.mit.edu |
| ⏱️ Time | Approximately 30–45 minutes |
| 📋 Starter project | Available via the Raspberry Pi link above |
Step-by-Step Guide
- Create a garden or forest backdrop.
- Add a small bug sprite (draw your own or use a Beetle from the library).
- Use
go to [random position]inside aforeverloop so the bug keeps moving. - Add a
wait [1] secsso it doesn’t teleport too fast. - When the bug is clicked (
when this sprite clicked), play a sound and add 1 to ascorevariable. - Create a
timervariable. Use arepeat until (timer = 0)loop that decrements every second. - When the timer reaches 0, stop all scripts and display the final score.
- Add a start screen with a
say [Click the bug to score!]message. - Test and adjust the bug’s speed to make the game fun.
- Add a high score variable that only updates when beaten.
Extension Challenges
Try these after completing the main project:
- Add decoy bugs that deduct points when clicked.
- Make the bug shrink as the timer runs out.
- Add different bug types worth different points.
Reflection Questions
- Which Scratch blocks did you use most in this project?
- What would you add or change if you had more time?
- How could you reuse the ideas from this project in a different context?
Share Your Work
When your project is complete, click Share in Scratch and post the link to your class or the Techbase community.
| ← Back to Scratch Course | Next: Lesson 04 → |