Chapter 4: Events & Parallel Scripts
Run multiple scripts at the same time and coordinate different sprites cleanly using broadcast messages.
Lesson goal & core concept
Combine parallel scripts (e.g., moving while playing music) and synchronize scenes with broadcasts.
Scratch lets several scripts start from the same event. When order matters across sprites, use "broadcast and wait" instead of guessing wait times.
Step-by-step practice
Work through these steps in the Scratch editor, predicting each result before clicking the green flag.
- Create two green-flag scripts: one for movement, one for sound.
- Notice both run simultaneously without blocking each other.
- Add a Start button that broadcasts "Start Game" when clicked.
- Listen with "When I receive [Start Game]" on the player sprite.
- When this sprite clicked
- Broadcast Start Game
- Hide
Try it: Clicking the Start button hides the menu and launches the game across all sprites.
Mini challenge & next steps
Add a second broadcast called "Game Over" that stops movement and shows a Retry button.
FAQ
How long should I spend on "Chapter 4: Events & Parallel Scripts"?
Aim for 15–20 minutes: read the concept, test the small example, modify one value to see what changes, and try the mini challenge.
This guide is provided for educational purposes. Scratch screens and terms may change over time, so please check the official Scratch website as well.