graphic overlay transparency

Started by stuh505, Fri 14/05/2004 01:17:15

Previous topic - Next topic

stuh505

QuoteCreateGraphicOverlay (int x, int y, int slot, int transparent)

Creates a screen overlay containing a copy of the image from SLOT in the Sprite Manager. The image is placed at (X,Y) on the screen (these are screen co-ordinates, not room co-ordinates). If TRANSPARENT is 1 then the overlay will be drawn in the same way as characters/objects, if it is 0 then the a black rectangle will be painted behind the sprite.

I am confused on the isue of the transparency.  When set to 1, I expect it to display the same as characters/objects...yet, it ignores my alpha channel for transparency, which works on characters and objects.  I have found that using the upper left pixel as transparent DOES work, BUT it is not possible to get antialiasing this way.  When I change transparency to 0, it does not seem to have any affect when displaying sprites with or without an alpha channel.  Hence the confusion.

strazer

Yes, overlays don't seem to support being drawn with an alpha channel.
Normal transparency works ok.

MrColossal

I don't think CJ has made it so overlays take advantage of the alpha channel
"This must be a good time to live in, since Eric bothers to stay here at all"-CJ also: ACHTUNG FRANZ!

Pumaman

Indeed, I'll add it to my list.

SMF spam blocked by CleanTalk