Sign in to follow this  
punkeskimo

Is it possible? (allegro)

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
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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this