Creates a new sprite of the chosen costume at the given location.
(Opens YouTube in new tab)
This block customizes how the sprite looks and where it starts on the display. The costume drop down menu gives a variety of sprite costumes to choose from and also has the option to draw a costume. A location block can be attached at the end of the block to control where the sprite will appear on the display.
Create a new sprite with a "pink bunny" costume at (100, 300).
Create a carrot in a random location whenever the bunny is clicked.
Name | Description |
---|---|
location | The location where the sprite appears on the display |
costume | Each Sprite Lab project or level will include some default sprite costumes, but you can also choose from a larger costume library or draw your own using the built-in pixel editor. |
Found a bug in the documentation? Let us know at documentation@code.org