Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: LeChuck on Thu 05/06/2008 20:47:42

Title: Sprite question
Post by: LeChuck on Thu 05/06/2008 20:47:42
I'm just wondering... If I've got a large sprite with a huge transparent area (that pink colour in the editor), will the transparent area make your game bigger or does AGS have a method of removing / compressing this irrelevant data? A bitmap image will be huge in size even if there's just one colour in there... Do you have to be careful to crop away parts of sprites that the game will view transparent?
Title: Re: Sprite question
Post by: Khris on Thu 05/06/2008 21:41:26
It in general good practice to remove unnecessary transparent borders.
Having said that, AGS uses its own compression, so uni-colored areas shouldn't increase the filesize that much.
That's why the image format doesn't matter, btw.
Title: Re: Sprite question
Post by: LeChuck on Thu 05/06/2008 22:08:47
Quote from: KhrisMUC on Thu 05/06/2008 21:41:26
It in general good practice to remove unnecessary transparent borders.

This is true, although it's very handy to leave some space on all sides of sprites that are being animated, in case you decide to make a character move his arms around or something. I've often made the sprite borders too small and it's come back to bite me in the ass many times. Thanks for the reply.
Title: Re: Sprite question
Post by: Khris on Fri 06/06/2008 03:40:00
When you want to animate characters, keep in mind that the sprite's pivot is the bottom center, so as long as you add the same number of pixels to both sides of the sprite, the animation won't make the sprite move about.