Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: stuh505 on Fri 14/05/2004 01:17:15

Title: graphic overlay transparency
Post by: stuh505 on Fri 14/05/2004 01:17:15
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.
Title: Re: graphic overlay transparency
Post by: strazer on Fri 14/05/2004 01:22:23
Yes, overlays don't seem to support being drawn with an alpha channel.
Normal transparency works ok.
Title: Re: graphic overlay transparency
Post by: MrColossal on Fri 14/05/2004 01:23:07
I don't think CJ has made it so overlays take advantage of the alpha channel
Title: Re: graphic overlay transparency
Post by: Pumaman on Fri 14/05/2004 16:23:05
Indeed, I'll add it to my list.