background_alpha

Returns or sets the alpha of any background within a room.

Syntax:

background_alpha[0...7]


Returns: Real


Description

This variable array returns the alpha (transparency) value of any one of the 8 backgrounds (numbered form 0 - 7 within the array) of the current room. This value can be anywhere between 0 and 1, where 0 indicates that the background is completely transparent and 1 (the default value) indicates that the background is completely opaque.


Example:

if background_alpha[0] <1 background_alpha[0] = 1;

The above code checks the alpha value for background0 and if it is less than 1, it sets it to 1.


Back: Backgrounds
Next: background_blend
© Copyright YoYo Games Ltd. 2018 All Rights Reserved