This value block gets all sprites of the selected costume.
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 costume block is used to choose which sprites are affected based on the costume they have.
Examples
Example 1
Make a carrot appear whenever a purple bunny sprite is clicked.
Example 2
Create five wandering purple bunnies.
Syntax
allSpritesWithAnimation
Parameters
Name | Type | Required? | Description |
---|---|---|---|
costume | The costume group to select |
Tips
- The costumes are organized by category. Quickly find a costume by exploring a category or using the search bar.
Found a bug in the documentation? Let us know at support@code.org.