DisplayAlphaSprite()
Syntax
DisplayAlphaSprite(#Sprite, x, y)Description
Display the #Sprite at the specified position on the current screen. The color 128,128,128 (gray) is considered as a transparent color (this color will not be displayed). The sprite emulates an 'AlphaChannel' so any tricks possible with such a channel are available with it. The sprite must be an 8 bit (256 colors) sprite, with only gray colors. On this sprite, each gray intensity less than 128,128,128 makes the area progressively darker and each intensity above 128,128,128 meakes the area progressively lighter. This allows your program to do very cool effects in real time like soft shadows etc.. the possibilities are huge. ChangeAlphaIntensity() can be used to control each R,G,B component of the Alpha Channel. The sprite must be loaded with LoadSprite() using the #PB_Sprite_Alpha option. This command is clipped, so it's perfectly legal to display the sprite outside of the screen.
This command works much faster if StartSpecialFX() is used.
Supported OS
Windows, Linux