Lesson 8: Events and Broadcasting in Scratch
What You'll Learn
In this lesson, we'll explore events and broadcasting in Scratch. You'll learn how to create interactive projects that respond to user actions and how different parts of your project can communicate with each other.
Key Concepts
Events
Actions or occurrences detected by the program, such as a key press or a mouse click.
Broadcasting
A way for sprites to communicate with each other by sending and receiving messages.
Event Listeners
Blocks that wait for a specific event to occur before running the attached code.
Message Passing
The process of sending messages between different parts of a program.
Blocks We'll Use
Event Blocks
- When Green Flag clicked
- When this sprite clicked
- When [key] key pressed
- When backdrop switches to [backdrop]
Broadcasting Blocks
- Broadcast [message]
- Broadcast [message] and wait
- When I receive [message]