Sprite::switchCostume()
Switches to the costume with that name; an unknown name changes nothing.
Examples
Syntax
Java
.switchCostume(name)
.switchCostume(index)
Scratch
switch costume to [name v]
Parameters
| Name | Data Type | Description |
|---|---|---|
| name | String | the costume's name |
| index | double | the costume's number |
Return
void