What You Will Build
Design an immersive interactive world with multiple locations, NPCs and hidden collectibles. Follow the guide below to build the project, then open the official Raspberry Pi page for starter files, worked examples and extra help.
🍓 This project is on the Raspberry Pi Foundation website. Click the orange button above to access the full guide, starter Scratch project and extension activities on projects.raspberrypi.org.
What You Will Learn
- Use multiple backdrops to represent different world locations
- Create a travel map for navigating between areas
- Add NPCs that respond to clicks with dialogue
- Implement a journal variable that tracks visited locations
- Trigger a completion event when everything is discovered
Step-by-Step Guide
- 1Plan your world: 4 locations (forest, city, beach, mountain).
- 2Create one backdrop per location.
- 3Add a map sprite. On each region of the map when clicked: switch backdrop to [location].
- 4Add 2 unique NPC sprites per location. When clicked: say [dialogue].
- 5Add ambient sound for each backdrop using when backdrop switches to [x] → play sound.
- 6Create a journal variable and a visited list.
- 7When each location is first loaded: add location to [visited] if not already there.
- 8Add a hidden item per location. When found: say [Discovery!] and add to a found list.
- 9When all 4 locations visited and all items found: show a World Complete screen.
- 10Add a player character sprite the user controls to walk between areas.
Extension Challenges
Finished the main project? Push further:
- Add NPCs that give quests — collect specific items to earn rewards.
- Add a day/night variable that changes the backdrop tone over time.
- Create a sequel world that is unlocked by completing the first.