draw_set_alpha() (Game Maker)
draw_set_alpha()
(Game Maker 6.1, 7 Pro)
draw_set_alpha - set the transparency for drawing functions.
Description
draw_set_alpha ( alpha )
- alpha - set the alpha (transparency) of all draw functions used after this is called.
Examples
Example of Use
draw_set_alpha(0.5);
The code in this example sets the alpha of all drawing functions called after it to 0.5.
Common Mistakes
- Not placing the function in the draw event.
Related Pages
page revision: 8, last edited: 30 Jun 2012 15:30