Page 1 of 1
Transparent Sprites
Posted:
Sun Sep 25, 2011 7:39 am
by foleyjo
How do I stop Game-Editor from making my sprites transparent.
I have some images made in paint-shop. They are saved as png files with no transparency.
However when I put them into GE it seems to remove the most common colour. For my game to work can't have any colour removal.
Re: Transparent Sprites
Posted:
Sun Sep 25, 2011 8:12 am
by skydereign
gE doesn't use the most common color. Since your images don't have an alpha channel, it takes the top left pixel and turns it transparent. To prevent this you can add one, or change the top left pixel to a color that isn't in your image (so only one pixel is removed).
Re: Transparent Sprites
Posted:
Sun Sep 25, 2011 8:13 am
by foleyjo
Thank You
Re: Transparent Sprites
Posted:
Sun Sep 25, 2011 5:19 pm
by Jagmaster
Or, if you're working with pngs, simply add an alpha channel.
Re: Transparent Sprites
Posted:
Sun Sep 25, 2011 6:53 pm
by skydereign
Or, if you're working with pngs, simply add an alpha channel.
If it wasn't clear... that is one of the two solutions.
skydereign wrote:gE doesn't use the most common color. Since your images don't have an alpha channel, it takes the top left pixel and turns it transparent. To prevent this you can add one, or change the top left pixel to a color that isn't in your image (so only one pixel is removed).
Re: Transparent Sprites
Posted:
Sun Sep 25, 2011 7:45 pm
by Jagmaster
Boy, I wasn't thinking this morning was I?
Re: Transparent Sprites
Posted:
Fri Oct 14, 2011 12:14 pm
by Kalladdolf
Sorry for the bump, but I'm having the exact opposite problem:
I want GE to remove the top left pixel (and the colors respectively), but it doesn't.
The image was saved with MS Paint (as .png) and as far as I know there's no alpha channel.
Size: 640x480 (tileset).
Re: Transparent Sprites
Posted:
Fri Oct 14, 2011 1:13 pm
by lcl
Kalladdolf wrote:Sorry for the bump, but I'm having the exact opposite problem:
I want GE to remove the top left pixel (and the colors respectively), but it doesn't.
The image was saved with MS Paint (as .png) and as far as I know there's no alpha channel.
Size: 640x480 (tileset).
You are using windows 7, aren't you?
I've had that same problem.
It's problem with win7 paint, you need to save it as bmp.
Re: Transparent Sprites
Posted:
Fri Oct 14, 2011 1:32 pm
by Kalladdolf
Nope, vista. And it works with other pngs as well.
Same alpha color, same everything. Just not the measurements and frame counts.
Re: Transparent Sprites
Posted:
Fri Oct 14, 2011 3:51 pm
by Game A Gogo
I'm ready to bet that it saved it as 32-bit. Send me the PNG and I will check. If it is I can send you a 24-bit one
Re: Transparent Sprites
Posted:
Fri Oct 14, 2011 9:16 pm
by skydereign
Yeah, this happened to NightOfHorror as well. I ended up running through all his animations with gimp and removing the alpha channels for him.
Re: Transparent Sprites
Posted:
Sat Oct 15, 2011 8:03 am
by Kalladdolf
Thanks, it works now. Removing alpha channels certainly did the trick. Now I gotta worry about palettes and bit-by-bit file size reduction :3