Transparent Colors when loading sprites. How to make object 100 Opaque

Started by MCF, Mon 15/12/2003 22:50:53

Previous topic - Next topic

MCF

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?

Scorpiorus

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

James Kay

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.

SSH

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
12

SMF spam blocked by CleanTalk