changeTo

abstract fun changeTo(index: Int)

Changes the current costume of this sprite to the one at the specified index.

Parameters

index

The index of the costume to change to.

Throws

IndexOutOfBoundsException

if the index is out of bounds.