.\" Generated by the Allegro makedoc utility .TH fli_frame 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME fli_frame \- Stores the current frame number of the animation. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B extern int fli_frame; .SH DESCRIPTION Global variable containing the current frame number in the FLI file. This is useful for synchronising other events with the animation, for instance you could check it in a play_fli() callback function and use it to trigger a sample at a particular point. Example: .nf while (next_fli_frame(0) == FLI_OK) { if (fli_frame == 345) play_sample(trumpet_sound, 255, 128, 1000, 0); /* Rest some time until next frame... */ } .fi .SH SEE ALSO .BR play_fli (3alleg4), .BR play_memory_fli (3alleg4), .BR next_fli_frame (3alleg4)