Module 3: Lineup
| Course: Scratch Programming | Level: Module 3 | Project 33 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 "Lineup" on Raspberry Pi Projects →](https://projects.raspberrypi.org/en/projects/lineup)
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
Arrange sprites in formation responding to user input using positioning.
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 Module 3
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 6 character sprites with at least 2 costumes each.
- When the flag is clicked: place all sprites at random positions on the stage.
- Add a
Sortbutton. When clicked: glide all sprites into a straight line. - Space them evenly: first sprite at x:-200, then -120, -40, 40, 120, 200.
- Add height sorting: sort sprites by their y-start position (tallest to shortest).
- Add colour sorting: group sprites by costume colour.
- Add drag-and-drop: allow the user to reposition sprites manually.
- Add a check button that evaluates if the lineup is in correct order.
- Add a score based on how quickly the user sorts the lineup.
- Add animated entry: sprites march in from off-screen before the sorting challenge.
Extension Challenges
Try these after completing the main project:
- Add ascending and descending sort animations.
- Add a musical chairs mode where sprites compete for fewer positions.
- Turn it into a team-formation tactical board.
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 34 → |