Windows gif_open

mikix

Member
gif_open(surface_get_width(global.final_surf), surface_get_height(global.final_surf),0);

The last argument is not working. I get a black background on my gif anyway.
 

mikix

Member
Oh. I expected it to clear the color background of the gif or what I had set the color background to be for the room. Surely, there must be some way to make the background have 0 alpha?
 

Nocturne

Friendly Tyrant
Forum Staff
Admin
Moderator
Surely, there must be some way to make the background have 0 alpha?
I don't think there is with the built in functions. Might be worthwhile filing a bug report about that actually... GIFs don't support an alpha channel as such, but they do support 100% transparency (so either a pixel is transparent or it's not, no 50% alpha or anything), which you should be able to specify for a colour. We can do this for sprite_add by setting a specific colour to make transparent on import so I don't see why the same concept couldn't be used to make GIFs with a transparent background too.
 
Top