Scratch for Java

Sprite::switchCostume()

Switch to a costume by name.

Syntax

Java

.switchCostume(name)
.switchCostume(index)

Scratch

switch costume to [name v]

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()

Create Shareable URL

Select Sections