Example teaching project. Use original or permitted assets and follow school consent rules before publishing.
Learning outcomes
- Use events, conditions and variables.
- Test scoring and restart behaviour.
- Explain one improvement from play testing.
Materials
- Computer with Scratch 3
- Player and rescue-target sprites
- Space backdrop and a project file saved locally
Plan, build and test
- Create a player sprite and use arrow keys to change its x and y positions.
- Add a target sprite and a score variable; reset score to zero when the green flag is clicked.
- When the player touches the target, change score by one and move the target to a new position.
- Test that touching once does not add points continuously; use wait until not touching or relocate the target.
- Add a win message at five points. Test the restart, movement and score before sharing your explanation.