Scratch for Java

Sprite::broadcast()

Broadcasts a message to all sprites in the stage except the current sprite. If the stage is not set, the method returns immediately.

Syntax

Java

.broadcast(message)
.broadcast(message)

Scratch

broadcast [message v]

Parameters

Name Data Type Description
message String The message to broadcast to other sprites.

Return

void

broadcast()