Scratch for Java

Stage::add()

Adds a sprite, in front of the sprites of its layer. A sprite can only be on one stage; it leaves the old one.

Examples

View on GitHub

Syntax

Java

.add(sprite)
.add(pen)
.add(text)

Parameters

Name Data Type Description
sprite Sprite the sprite
pen Pen the pen
text Text the text

Return

void

add()

Create Shareable URL

Select Sections