What You Will Build
Design a digital storybook with pages the reader can navigate by clicking arrow buttons. 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 as separate story pages
- Create a page variable to track which page is showing
- Use if conditions to prevent going past the first or last page
- Add Next and Back arrow sprites as navigation buttons
- Combine text, characters and sound on each page
Step-by-Step Guide
- 1Plan a 4–6 page story — sketch each page on paper first.
- 2Create one backdrop per page, named Page1, Page2, Page3 etc.
- 3Add a right-arrow sprite for the Next button.
- 4On the Next arrow: when clicked → change [page] by 1 → switch backdrop to (page).
- 5Add an if <page > 5> set [page] to [5] block to stop at the last page.
- 6Add a left-arrow sprite for the Back button.
- 7On the Back arrow: change [page] by -1 with a matching lower limit check.
- 8Add text sprites on each page with your story content — hide/show based on the backdrop.
- 9Add a character sprite that changes costume on different pages.
- 10Add a sound effect or narration clip for each page.
Extension Challenges
Finished the main project? Push further:
- Add an animated title page with music that plays on load.
- Add a page number display that always shows the current page.
- Add a secret hidden object on one page that reveals a bonus page when clicked.