Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Calin Leafshade on Sat 28/11/2009 22:27:45

Title: 'drawing' transparency (SOLVED)
Post by: Calin Leafshade on Sat 28/11/2009 22:27:45
I know that drawing surfaces dont support 8-bit alpha channels but is it possible to paint to the 1-bit alpha?

in a 16-bit game you would just paint (255,0,255) to the sprite to make it transparent. but in a 32-bit that doesnt work. is there an alternative?
Title: Re: 'drawing' transparency
Post by: GarageGothic on Sat 28/11/2009 22:31:16
It should work, I do it all the time in my game. Try using COLOR_TRANSPARENT instead of RGB(255, 0, 255), perhaps the magic pink behavior changed when RawDraw was replaced with DrawingSurface functions.
Title: Re: 'drawing' transparency [Solved]
Post by: Calin Leafshade on Sat 28/11/2009 22:36:54
yup that works.. thanks