Home » coding » Cloning


Start here

Cloning is a feature that allows a sprite to create a clone, or semi-duplicate, of itself
Useful in tower defense games, for example, for a wave of objects.

Clones of a sprite will be the same as the original, or parent sprite, but as a separate instance.

Clones inherit the parent’s scripts, costumes, sounds, and properties, but can then be modified.

Limit of 300 clones per project to prevent lagging/crashes.

Main tutorial https://wiki.scratch.mit.edu/wiki/Clone

The Create Clone of () block is a control block and a stack block.

It creates a clone of the sprite in the argument. It can also clone the sprite it is running in, creating clones of clones, recursively.

Tutorial https://wiki.scratch.mit.edu/wiki/Create_Clone_of_()_(block)

When I Start as a Clone (block) – a control block and a Hat block.

It activates in a clone when it gets created.

It is the only Hat block in the Control palette; all the others are in Events, Motor, or PicoBoard.

Tutorial https://wiki.scratch.mit.edu/wiki/When_I_Start_as_a_Clone

Delete This Clone

Tutorial https://wiki.scratch.mit.edu/wiki/Delete_This_Clone

Duplicating Sprites: This is NOT the same as cloning


%d bloggers like this: