Broadcast and wait [message]

Last modified by Stephan Robinig on 2020/12/07 22:40

Sends a specified message to all objects and the background. The object that sends the message waits until all objects, that received the message, have finished their scripts. Then the initial script continues.

Broadcast and wait Brick

Correlates with this brick:

When Your Receive Brick
Learn more >>

Example

Create two objects like:

Broadcast and wait Example 1

Tell the panda what to do when it receives the message:

Broadcast and wait Example 2

In game over take this script to specify when the message is sent and what to do when the other objects are finished with their scripts:

Broadcast and wait Example 3

Note: select the same message in both bricks!

Result

Download

Broadcast and wait Result