Sprite::switchCostume()
Switch to a costume by name.
Syntax
Java
.switchCostume(name)
.switchCostume(index)
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | the name of a costume |
| index | double | The index of the costume to switch to. |
Return
void

Switch to a costume by name.
.switchCostume(name)
.switchCostume(index)
| Name | Data Type | Description |
|---|---|---|
| name | String | the name of a costume |
| index | double | The index of the costume to switch to. |
void