Legacy:Functions/Spritesets
From Spherical
Spritesets
- Sphere Spriteset object: Holds appearance, direction and base data for a map person.
- Spriteset.images[]: an array of all images in the spriteset.
- Sphere Spriteset.base: contains a SpritesetBase object which holds coordinates of the spriteset's collision box/obstruction base relative to the Spriteset dimensions.
- Sphere Spriteset.directions[]: an array of SpritesetDirection objects, each of which containing a direction name and a sequence of SpritesetFrame objects determining the order of images used and delays between animation.
- LoadSpriteset(filename): Load a Sphere Spriteset from filename.
- CreateSpriteset(frame_width, frame_height, num_images, num_directions, num_frames): returns a blank spriteset object with the given dimensions
- Spriteset.save(filename): saves the spriteset object to 'filename'
- Spriteset.clone(): returns a copy of the spriteset object