Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Strom_Grom on Mon 29/03/2010 10:50:11

Title: Problems with sprite importing
Post by: Strom_Grom on Mon 29/03/2010 10:50:11
Hey folks! I've got few nasty problems. Well, i want to import sprites to ags, im importing gif animation (quick import gif frames) and these images seem to be spoiled when i put them into ags sprite folder. First of all the character images are smaller than i expected, and there are some wrong pixels around the character image (there might be some 'additional' arms, 'sloppy' pixels etc) + the whole images sinkes heheh into this pathetic pink colour! I tried to switch game pallete (i tried to import in 8 bit, 16 bit and 32 bit), i also tried to change my monitor settings from 32bit to 16 bit, i tried to experiment with 'default sprite import transparacy'... i run the game several times to see how does my character look like and he was even smaller than normal with bad pixels around him. Actually it seems that programm has some serious troubles with sprite importing - any kind of sprite i tried to import looked spoiled (i tried bmp, png, gif...)
Does anybody know how to fix all these things?
Title: Re: Problems with sprite importing
Post by: Khris on Mon 29/03/2010 12:25:35
1. The pink around the sprite indicates transparency and won't be visible in-game.
2. If you drew the sprite using an alpha channel, the sprite needs to be saved using a format that supports alpha channels, e.g. PNG. (Not GIF)
3. To use alpha channel sprites, the game must be set to 32bit, otherwise the alpha channel is discarded and you'll get an ugly border around the sprite.

If the images are smaller than expected, that's because AGS doesn't display them at their original size in the editor if they are too big. As with transparency, they should appear correct in-game though.

If they are smaller than expected in-game, you're doing something wrong.
Title: Re: Problems with sprite importing
Post by: Strom_Grom on Tue 30/03/2010 05:14:09
Im beginning to understand now ! Thank you !