Scratch for Java

Sprite::setRun()

Sets the run handler for the sprite. This allows you to define custom behavior when the sprite is run.

Syntax

Java

.setRun(run)

Parameters

Name Data Type Description
run RunHandler A RunHandler that takes a Sprite as input and defines the

Return

void

setRun()