Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LinkMaestro on Sun 25/03/2012 17:51:19

Title: Importing Sprites have junk all around them
Post by: LinkMaestro on Sun 25/03/2012 17:51:19
Whenever I import a sprite, there's white static like dirt all around them.  I'm using GIMP to make the characters. Any ideas how to get rid of this?
Title: Re: Importing Sprites have junk all around them
Post by: Icey on Sun 25/03/2012 19:25:38
Are they jpg? If so it would be best to save our stuff as a png or bmp. Or if you want you can go through each pic and erase the extra "dirt" around the spirits.

Btw, if your trying to import a spirit with a transparent background then make sure the background is transparent in gimp and save it as png then re-import it into AGS after you made sure that the color mode of AGS is in 32-bit, not 16 or 8 bit.
Title: Re: Importing Sprites have junk all around them
Post by: Khris on Sun 25/03/2012 19:45:41
To elaborate a bit, if you're using a smooth brush, you're drawing semi-transparent pixels.
Like Icey said, if your game isn't set to a color depth of 32bit before the sprite is imported, those pixels' partial transparency is lost, thus the white outline.
Title: Re: Importing Sprites have junk all around them
Post by: kyodai on Mon 26/03/2012 14:39:51
I have had that as well, in my case it were pixels that were "white" which i had used as transparency, but on close inspection they were not perfect white, just a few shades off, not really visible to the human eye. What i did was using the filling tool to fill the "white/nearly white" areas with a "perfect" white in gimp.
Title: Re: Importing Sprites have junk all around them
Post by: LinkMaestro on Tue 27/03/2012 16:22:23
Alright, i think I have the problem resolved by not using semi-transparent pixels. If I set the game to 32-bit, will it allow semitransparent pixels to make the sprite look smoother?
Title: Re: Importing Sprites have junk all around them
Post by: Khris on Tue 27/03/2012 17:41:28
Yes. If you save the image as PNG with alpha channel, AGS will recognize that. You can put those sprites on characters and objects just fine, just GUIs might act up a bit. You can put them on GUI buttons, as long as the GUI background image is also a sprite with alpha channel.