Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: lilinuyasha on Wed 09/07/2014 18:22:24

Title: Damaged sprites when importing .gif files
Post by: lilinuyasha on Wed 09/07/2014 18:22:24
It's been a long time since I've done anything with AGS, so I decided to give it a go again. I remember having this issue in previous versions, but when I preview the .gif file I wish to import, it's perfect. Everything works perfectly. When I quick import gif files, however, the sprites get damaged and seem to cut out noticeable chunks of the sprite. Is there a way to fix this? If I have to break the gif into each of its individual sprite frames and import them that way, so be it, but I'd rather just be able to quick import gifs without damage.

I have noticed that while all sprites suffer some sort of damage, some are worse than others. Sometimes, it's just the whites of the eyes that get taken out. Other time, a huge square of the head goes missing. If you'd like me to attach pictures of the monstrosities being created by missingno, apparently, reply as such and I'll make sure to include it. Until then, what are your suggestions?
Title: Re: Damaged sprites when importing .gif files
Post by: Cassiebsg on Wed 09/07/2014 18:43:44
I think your problem is that you are using the same background color in your sprites as well.
AGS takes (by default) the first pixel on the upper left to decide what color is the transparent one. Make sure that your transparent color/background is not used any place else on your GIF.

Hope this helps.
Title: Re: Damaged sprites when importing .gif files
Post by: Ghost on Wed 09/07/2014 19:19:19
What cassie said- those chunks are also called artifacts. If you have non-aliased sprites, you need a solid background colour that is unique; most often "magic pink" is used
(RBG 255 0 255).
If your sprite has aliased edges, you may want to switch to 32bit colour depth and import the sprites using alpha transparency.
Title: Re: Damaged sprites when importing .gif files
Post by: lilinuyasha on Wed 09/07/2014 20:18:31
My sprites were transparents. I ripped them directly off of "Desktop Ponies" If you';re familiar.

I have no idea if my sprite has aliased edges. How do I import with alpha transparency?