gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Very newbie-ish question about sprite transparency.

#17616 - ender7771 - Thu Mar 11, 2004 4:25 am

I'm working with a simple 3 colored sprite in mode 3. The three colors are green, black, and a hot pink I want to be transparent. I use the program pcx2gba to convert the picture into palette data and sprite data. However, after changing the first entry in the palette to the hot pink and recompiling, the black area of the sprite is still transparent.

If it helps, I am editting the palette by hand, so I don't think its an error in the code, just in my method. Could anyone give me any suggestions? THis has been bothering me for a while now.

#17625 - Sweex - Thu Mar 11, 2004 10:30 am

The color for transparency must always be index 0 in the palette. (And as it will be transparent it doesn't matter whether it is bright purple or white or whatever color.)

Hope this helps!
_________________
If everything fails, read the manual: If even that fails, post on forum!