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
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