Sprite3D
Represents a sprite in the Kray game engine.
Properties
Whether the sprite can collide with other sprites. False means it cannot.
The current costume that the sprite is wearing.
The index of the current costume being used by this sprite.
The surface area of the object's bounding box, based on its size parameters.
Functions
Adds a costume to this sprite.
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.
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.
Removes the specified costume from this sprite.
Removes the costume at the specified index from this sprite.
Sets the costume at the specified index for this sprite.
Sets the costumes for this sprite.
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.