Damaged sprites when importing .gif files

Started by lilinuyasha, Wed 09/07/2014 18:22:24

Previous topic - Next topic

lilinuyasha

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?
I can Fluently speak Braille. I obtained a swiss army knife...From the Turkish Navy. My hands feel like rich brown suede. My blood smells like cologne. I AM Trey Love, The most Interesting Man in the World.

Cassiebsg

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.
There are those who believe that life here began out there...

Ghost

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.

lilinuyasha

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?
I can Fluently speak Braille. I obtained a swiss army knife...From the Turkish Navy. My hands feel like rich brown suede. My blood smells like cologne. I AM Trey Love, The most Interesting Man in the World.

SMF spam blocked by CleanTalk