setCostume

open fun setCostume(index: Int, costume: T)

Sets the costume at the specified index for this sprite.

Parameters

index

The index of the costume to set.

costume

The image to set as the costume.