Is it possible to give an animated GIF a transparent background?

Posted by Phil on Game Development See other posts from Game Development or by Phil
Published on 2012-07-11T14:49:40Z Indexed on 2012/07/11 15:24 UTC
Read the original article Hit count: 244

Filed under:

I'm making a Fire Emblem-esque game. There are very cute 2D frames I made for each character, and, like a game like Fire Emblem, I want these characters to animate constantly.

To circumvent the graphics programming involved I came up with a novel idea! I would make each character an animated gif, and only in special conditions ever halt their constant movement - in that case just change what image is being displayed.

Simple enough. But I have a dilemma - I want the background of my .gifs to be transparent (so that the "grass" behind each character naturally shows, as per the screenshot - which has them as still images with transparent backgrounds). I know how to make a background transparent in numerous tools (GIMP, Photoshop). But it seems every .gif creator replaces the transparent background with something and I can't edit it back to transparent.

Is it possible to have a .gif with a transparent "background"? Perhaps my knowledge of file formats is limiting me here.

enter image description here

© Game Development or respective owner

Related posts about graphics