Scratch for Java

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

switchCostume()