broadcast ()
Broadcast ()
The broadcast () block is a stack block in the Events category that sends the selected message, allowing for the code under the when I receive () hat block to run. It originates from Scratch. The default selected broadcast is the most recently created one, which is the same as in the broadcast () and wait block.
It can be used with the when I receive () block to run code in other sprites, and can be used as an alternative to the as () block if there are multiple sprites that receive the broadcast:
say [Hello!] speak [Hello!] broadcast [others speak v]