Set Draw Alpha Icon Set Draw Alpha

With this action you can set the alpha to use for any shapes (rectangle/ellipse/line) or for any text that is drawn subsequently. Note that this does not have to be called before every draw action, and can be set once only at the start of the game. Alpha is the setting that controls how "transparent" things will be drawn and is based on a scale of 0 to 1, where 0 is fully transparent and 1 is fully opaque.

 

Action Syntax:

Set Draw Alpha Action

Arguments:

ArgumentDescription
AlphaThe alpha value to use (from 0 to 1, default is 1)

 

Example:

Set Draw Alpha ExampleThe above action block code sets the draw alpha to a random value between 0 and 1.