Stage::broadcast()
Broadcasts a message to every sprite on the stage and to the stage itself,
as in Scratch. Each of them runs its whenIReceive method with the
message.
Examples
Syntax
Java
.broadcast(message)
Scratch
broadcast [message v]
Parameters
| Name | Data Type | Description |
|---|---|---|
| message | String | The message to broadcast. |
Return
void