With this block your object listens for a specific broadcast message and then runs the script when the message is received. Useful to communicate between objects and tell them when to do something.

Why send broadcast messages?
With messages you can communicate and interact between different objects within a scene. It allows one object to send a message to all other objects, and the receiving objects can then react or respond to that message.
How does it work?
- Sender object: The sender object starts the communication by using a "Broadcast" block. This block is used to send a message to all other objects in the scene (also the background).
- Receiving object: The receiving object is the one that listens for and responds to messages. It uses the "When you receive" block to detect when a specific message is being received.
- Message Handling: When the receiving object gets the message, it will execute all the blocks that are beneath the "When you receive" block. This allows you to define custom behavior or actions that occur when a particular message is received.
Example
When you tap game over, the panda will disappear. You need two objects:

This is the script for the panda:

And this the one for game over:

Note: select the same message in both bricks!
Result

