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.
Argument | Description |
---|---|
Alpha | The alpha value to use (from 0 to 1, default is 1) |
The above action block code sets the draw alpha to a random value between 0 and 1.