1fli_frame(3) Allegro manual fli_frame(3)
2
3
4
6 fli_frame - Stores the current frame number of the animation. Allegro
7 game programming library.
8
10 #include <allegro.h>
11
12
13 extern int fli_frame;
14
16 Global variable containing the current frame number in the FLI file.
17 This is useful for synchronising other events with the animation, for
18 instance you could check it in a play_fli() callback function and use
19 it to trigger a sample at a particular point. Example:
20
21 while (next_fli_frame(0) == FLI_OK) {
22 if (fli_frame == 345)
23 play_sample(trumpet_sound, 255, 128, 1000, 0);
24 /* Rest some time until next frame... */
25 }
26
27
29 play_fli(3), play_memory_fli(3), next_fli_frame(3)
30
31
32
33Allegro version 4.2.3 fli_frame(3)