Scratch for Java

Sprite::createClone()

Makes a clone: a copy of this sprite with the same costumes, position, direction, effects and variables, added to the stage just behind this sprite, as in Scratch. Its whenStartsAsClone() runs; its constructor does not. Numbers, texts and booleans in its variables are its own; lists and other objects are shared with this sprite until the clone gets its own in whenStartsAsClone().

Bullet bullet = this.createClone();

Syntax

Java

.createClone()

Return

T

createClone()

Create Shareable URL

Select Sections