Creates a new sprite of the chosen costume at the given location.
Video: How to Make a Sprite
(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.
Examples
Example 1
Create a new sprite with a "pink bunny" costume at (100, 300).
Example 2
Create a carrot in a random location whenever the bunny is clicked.
Syntax
makeNewSpriteAnon
Parameters
Name | Type | Required? | 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. |
Tips
- The default starting location of the sprite is 200, 200. Play around with different location blocks to customize where the sprite appears.
Found a bug in the documentation? Let us know at support@code.org.