Ok, I'm afraid I can't remember exactly how you save transparency properly to gif files but I know it's a very fiddly thing that you have to get just right so you should read up on how to save gifs with transparency, here's an example. http://www.webreference.com/content/studio/disposal.html
The problem with your gifs is that they don't have transparency set properly. I tried myself but as I said I can't remember.
I know you can ignore the background color index as that is ignored in the gifload code as it is an 87a feature. You can just use 0,0,0 for the background color as that is the default transparent color for images in Blitz. If the gif file has a transparent color that color won't be draw by the gifload code.
MaskImage let's you change the transparent color for an image so in your two gifs you can use MaskImage image,8,8,8 for the black one, not sure why it's not 0,0,0 and for the cream one it's MaskImage image,248,248,200. You can use an image editor to get the rgb color of the background color (not to be confused with the background color index).
The disposal methods are tricky, gifs are stream-based so each frame draws over the last one. The first 2 disposals do this, they just render the next frame and leave the rest of the image alone. The next disposal copies the background color which in the gifload code means an empty/black image, not the background color index. The last disposal copies the previous frame over.
Anyway, hope that helps.
|