Scratch for Java

Sprite::switchCostume()

Switches to the costume with that name; an unknown name changes nothing.

Examples

View on GitHub

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

switchCostume()

Create Shareable URL

Select Sections