Sprite2D
Represents a sprite in the Kray game engine.
Properties
Functions
Link copied to clipboard
Adds a costume to this sprite.
Link copied to clipboard
Changes the current costume of this sprite to the next one in the list. Loops back to the first costume if currently at the last one.
Link copied to clipboard
Changes the current costume of this sprite to the previous one in the list. Loops back to the last costume if currently at the first one.
Link copied to clipboard
Removes the specified costume from this sprite.
Link copied to clipboard
Removes the costume at the specified index from this sprite.
Link copied to clipboard
Sets the costume at the specified index for this sprite.
Link copied to clipboard
Sets the costumes for this sprite.
Link copied to clipboard
Sets the current costume of this sprite to the specified image. If the image is not already a costume of this sprite, it is added.