Object-SpritesetDirection
From Spheriki
A SpritesetDirection object holds the name of a direction, and a list of frames. It doesn't make much sense on its own, which is why it forms part of the Sphere Spriteset object.
Contents |
Initializers
None. It comes in the form of the directions array of the Spriteset object.
Methods
None.
Members
- name String. The name of the direction, usually set during editting of the associated spriteset.
- frames Array of Sphere SpritesetFrame objects. An in-order list of the image indices and animation delays.
Examples
See examples for the Sphere Spriteset object.
Notes
- Manipulating spritesets is often a stumbling block for users of Sphere. This is one of four other pieces of the spriteset system used by Sphere, three of which are used for animations (Spriteset and Image being the other two). See the base Spriteset page for information about how these pieces fit together.
- At this point in time, there is no way to specify an order of animations manually, short of rearranging the order of the frames themselves. Animations can play in any order the user wishes if they script their own animations with this and the other Spriteset-associated objects.
See also
- Sphere Spriteset object
- Sphere SpritesetFrame object
- Sphere SpritesetBase object
- Sphere Image object