• Advertisement
Sign in to follow this  

Is it possible? (allegro)

This topic is 4500 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I was just wondering if it was possible to use gifs with allegro instead of bitmaps.. I can only find a good program for making animated gifs and I can't find one that will save an animated bmp... If you can't use gifs.. then does anyone know a program that will save animated bmps? Any help would be appreciated.

Share this post


Link to post
Share on other sites
Advertisement
That wouldn't be your only obstacle; the only animation file type Allegro supports is FLIC last I checked.

Share this post


Link to post
Share on other sites
you can however create your own animations of sorts using compressed datafiles to store each frame of the animation as a bmp.

Share this post


Link to post
Share on other sites
You're best option is to is to create or put a bunch of frames into a bitmap and cycle though the frames like this


if (++framecount>framedelay)
{
framecount = 0;
if (++currentframe>maxframe)
frame = 0;
}

where framedelay is a variable that determines how long it waites before it draws the next frame

Share this post


Link to post
Share on other sites
You can download a GIF loader to read GIF images, but you should handle all your animation with code. The only real reason to even use GIF is if you want to load external data from the user.

Share this post


Link to post
Share on other sites
Quote:
Original post by 23yrold3yrold
I personally created my own file type that stored a series of bitmaps along with animation info (like offsets and keyframes).
Whoa.... Welcome back, Chris. Where have you been?

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Quote:
Original post by 23yrold3yrold
Never left. Just don't have much to contribute to SDL threads. [smile]


So C.B. do you have a g/f now or what? Are you still playing wow? You know everyone at a.cc is pissed because you abandoned them....

Share this post


Link to post
Share on other sites
Quote:
Original post by Anonymous Poster
Quote:
Original post by 23yrold3yrold
Never left. Just don't have much to contribute to SDL threads. [smile]


So C.B. do you have a g/f now or what? Are you still playing wow? You know everyone at a.cc is pissed because you abandoned them....

Off-topic!! [flaming]

Heh; I'll go update my journal or something. I have a day off tomorrow ...

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement