Game Development Reference
In-Depth Information
Setting the alpha of a sprite
The image_alpha variable allows users to set the transparency of a sprite. A value of
one is not transparent at all, and a value of zero is completely transparent and in turn will
seem invisible. However, this does not mean the sprite isn't being drawn to the screen. It is
simply being drawn with zero transparency and is therefore still using memory resources.
The following is the example code:
Image_alpha=0.5; //half transparency
Search WWH ::




Custom Search