Gets the sprite with the specified name.
This block does nothing on its own and is meant to be inserted into other blocks, such as actions or events like set sprite property
or sprite clicked
. The sprite name block is used to choose which sprite is affected.
The default name is “mySprite,” but there is an option to use a new name (“rename this sprite”) or to change the name of a sprite throughout your program (“rename all”).
Each sprite has the same costume, but a different behavior.
Name | Description |
---|---|
name | The default name is “mySprite,” but there is an option to rename. In addition, the rename can be applied to all sprite name blocks in the code currently using that name. |
Found a bug in the documentation? Let us know at documentation@code.org