Scratch for Java

Sprite::broadcast()

Broadcasts a message to every sprite on the stage, this one included, and to the stage itself, as in Scratch. If the sprite is not on a stage, nothing happens.

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