Scratch for Java

Sprite::whenAddedToStage()

This method is called when the sprite is added to the stage. Override this method to define custom behavior when the sprite is added to the stage.

Syntax

Java

.whenAddedToStage()
.whenAddedToStage(stage)

Parameters

Name Data Type Description
stage Stage The stage to which the sprite is added.

Return

void

whenAddedToStage()