Scratch for Java

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

View on GitHub

Syntax

Java

.broadcast(message)

Scratch

broadcast [message v]

Parameters

Name Data Type Description
message String The message to broadcast.

Return

void

broadcast()

Create Shareable URL

Select Sections