Sprite::whenStartsAsClone()
Runs when this sprite was just made as a clone, like Scratch's "when I start as a clone". Override it to give clones their own behaviour, for example to send a bullet on its way.
public void whenStartsAsClone() {
this.show();
this.goToRandomPosition();
}
Examples
Syntax
Java
.whenStartsAsClone()
Scratch
when I start as a clone
Return
void