Jump to content
  • Advertisement
Sign in to follow this  
punkeskimo

Is it possible? (allegro)

This topic is 4622 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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!