Level 2: Don’t Fall In

Course: Scratch Programming     Level: Level 2     Project 11 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 "Don't Fall In" on Raspberry Pi Projects →](https://projects.raspberrypi.org/en/projects/dont-fall-in)

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

Create a game where a sprite must avoid falling into danger zones.


What You Will Learn

By the end of this project you will be able to:


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

  1. Choose a dangerous backdrop: lava field, ocean, pit.
  2. Add a player sprite on a platform.
  3. Add platform sprites across the stage.
  4. Use if touching [edge] and if y position < -150 to detect falling.
  5. Add gravity: in a forever loop, change y by [-2] constantly.
  6. When on a platform: stop falling using if touching [platform] set y velocity to 0.
  7. Use arrow keys to move left/right and spacebar to jump.
  8. Add change y by [10] for the jump with gravity pulling back down.
  9. If the player falls off: play a sound, reset position.
  10. Add a lives variable that decrements on each fall.

Extension Challenges

Try these after completing the main project:


Reflection Questions

  1. Which Scratch blocks did you use most in this project?
  2. What would you add or change if you had more time?
  3. 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 12