Sprite::addCostumes()
Adds every frame of a sprite sheet as a costume, row by row, named name0,
name1, \u2026
Examples
Syntax
Java
.addCostumes(name, imagePath, width, height)
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | the start of the costumes' names |
| imagePath | String | the image file |
| width | int | width of one frame |
| height | int | height of one frame |
Return
void