Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: MCF on Mon 15/12/2003 22:50:53

Title: Transparent Colors when loading sprites. How to make object 100 Opaque
Post by: MCF on Mon 15/12/2003 22:50:53
I keep running into issues regarding colors from sprites I load becoming transparent.  I am running 16-bit for the color.  It seems like the transparent colors recognized AGS is random.  Sometimes it's black... othertimes white... and now some off-white shades are being made transparent... giving the objects a hard-to-look-at spotty feel.

How do I make my objects 100% opaque when I want to?
Title: Re:Transparent Colors when loading sprites. How to make object 100 Opaque
Post by: Scorpiorus on Mon 15/12/2003 23:10:37
When you import a sprite there is an option Transparent colour which is set (by default) to the top-left pixel. That means all sprite pixels having the same colour as the most top-left one would be transparent as well.

QuoteHow do I make my objects 100% opaque when I want to?
You could make that top-left pixel's colour to be unique.
Also setting transparent color option to Palette index 0 may help for 16bit games (not sure here though)

~Cheers
Title: Re:Transparent Colors when loading sprites. How to make object 100 Opaque
Post by: James Kay on Tue 16/12/2003 01:03:36
I've had problems with the top-left, bottom-right, whatever selection tool. It seemed to ALWAYS select the top-left pixel no matter what I selected.

When importing a sprite, try making the top-left pixel pink (or your transparency colour( and see if that helps.
Title: Re:Transparent Colors when loading sprites. How to make object 100 Opaque
Post by: SSH on Tue 16/12/2003 12:37:29
The top-left/etc. setting has to be set BEFORE you load the file with your sprite: changing it after doesn't work.

Also, if you want a sprite totally opaque, try adding a 1-pixel border of a colour that isn't used anywhere in your sprite