Color cycle animation.
More...
Color cycle animation.
◆ TLN_SetPaletteAnimation()
Starts a palette animation.
- Parameters
-
index | Id of the animation to set (0 <= id < num_animations) |
palette | Reference of the palette to be animated |
sequence | Reference of the sequence to assign |
blend | true for smooth frame interpolation, false for classic, discrete mode |
◆ TLN_SetPaletteAnimationSource()
bool TLN_SetPaletteAnimationSource |
( |
int |
index, |
|
|
TLN_Palette |
palette |
|
) |
| |
Sets the source palette of a color cycle animation.
- Parameters
-
index | Id of the animation to set (0 <= id < num_animations) |
palette | Reference of the palette to assign |
◆ TLN_GetAnimationState()
bool TLN_GetAnimationState |
( |
int |
index | ) |
|
Checks the state of the animation for given sprite.
- Parameters
-
index | Id of the sprite to check (0 <= id < num_sprites) |
- Returns
- true if animation is running, false if it's finished or inactive
◆ TLN_SetAnimationDelay()
bool TLN_SetAnimationDelay |
( |
int |
index, |
|
|
int |
frame, |
|
|
int |
delay |
|
) |
| |
Sets animation delay for single frame of given sprite animation.
- Parameters
-
index | Id of the sprite with animation (0 <= id < num_sprites) |
frame | Id of animation frame to change delay in (0 <= id < sequence->count) |
delay | New animation frame delay to set |
- See also
- Animations
◆ TLN_GetAvailableAnimation()
int TLN_GetAvailableAnimation |
( |
void |
| ) |
|
Finds an available (unused) animation.
- Returns
- Index of the first unused animation (starting from 0) or -1 if none found
◆ TLN_DisablePaletteAnimation()
bool TLN_DisablePaletteAnimation |
( |
int |
index | ) |
|
Disables the color cycle animation so it stops playing.
- Parameters
-
index | Id of the animation to set (0 <= id < num_animations) |
- See also
- Animations