Sequence resources management for layer, sprite and palette animations.
More...
Sequence resources management for layer, sprite and palette animations.
◆ TLN_CreateSequence()
Creates a new sequence for the animation engine.
- Parameters
-
| name | String with an unique name to query later |
| target | For tileset animations, the tile index to animate |
| count | Number of frames |
| frames | Array of TLN_Frame items with indexes and delays |
- Returns
- Reference to the new sequence or NULL if error
- See also
- TLN_SetTilemapAnimation(), TLN_SetSpriteAnimation()
◆ TLN_CreateCycle()
Creates a color cycle sequence for palette animation.
- Parameters
-
| name | String with an unique name to query later |
| count | Number of color strips |
| strips | Array of color strips to assign |
- Returns
- Reference to the created cycle or NULL if error
- See also
- TLN_ColorStrip(), TLN_SetPaletteAnimation()
◆ TLN_CreateSpriteSequence()
- See also
- Creates a name based Sprite Sequence
- Parameters
-
| name | Optional name used to retrieve it when adding to a TLN_SequencePack, can be NULL |
| spriteset | Reference to the spriteset with frames to animate |
| basename | Base of the sprite name for the numbered sequence |
| delay | Number of ticks to delay between frame |
- Returns
- Reference to the created TLN_Sequence object or NULL if error
◆ TLN_CloneSequence()
Creates a duplicate of the specified sequence.
- Parameters
-
- Returns
- A reference to the newly cloned sequence, or NULL if error
- See also
- TLN_FindSequence()
◆ TLN_GetSequenceInfo()
Returns runtime info about a given sequence.
- Parameters
-
| sequence | Sequence to query |
| info | Pointer to a user-provided TLN_SequenceInfo structure to hold the returned data |
- See also
- TLN_FindSequence()
◆ TLN_DeleteSequence()
Deletes the sequence and frees resources.
- Parameters
-
| sequence | Reference to the sequence to be deleted |