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.

Graphics > sprite help

#83431 - JJGamer123456 - Tue May 16, 2006 10:15 am

I've made this sprite. but when i loaded on the gba, It also display the white background surrouning it. can you help get rid of the white background?

#83562 - tepples - Tue May 16, 2006 11:52 pm

You need to tell your paint program to assign color index 0 to white. Not all paint programs can do this.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#83611 - JJGamer123456 - Wed May 17, 2006 10:23 am

Do you know how to do it in photoshop

#83619 - kusma - Wed May 17, 2006 11:31 am

the "forced colors"-dialog (located in the "indexed colors"-dialog that appears when converting from true color to paletted) should be of help

#83645 - thegamefreak0134 - Wed May 17, 2006 5:24 pm

What I do is go to the color table (mode or something like that) and set the last color to the transparent color. I then save this pallete to a file, and load (replace, not append)it into the color swatch pane. (you might have to change the file type to see it.) Then, when you paint with the color, it will use that position in the index. The reason I say to use the last color here is that photoshop inverts the pallete, making the last color first and vice versa.
_________________
What if the hokey-pokey really is what it's all about?

[url=http:/www.darknovagames.com/index.php?action=recruit&clanid=1]Support Zeta on DarkNova![/url]

#96632 - ckudige - Fri Aug 04, 2006 8:57 am

If you use PAGFX utility (part of PALib) it will take care of this automatically.
All you need to do is add a line "#Transparent White" and it will use white as the transparent color.

Hope this helps.

/K