Action: Lettransparent(variable, target)

Related Actions: ghost, transparent
See also: FKiSS, Events, Actions Transparency and translucency

lettransparent(variable, target)

First defined in: FKiSS3
The lettransparent action sets the value of variable to the translucency value of target.
If target refers to an object or a group and different cels in target have different translucency values, variable is set to -1.
The translucency of a cel is in the range 0 to 255. 0 is fully opaque (the default). 255 is fully invisible.
A cel with a transparency of 255 may still be clicked on although it cannot be seen.

variable

Must be a variable name.

target

In FKiSS3, target may be a cel or object number.
In FKiSS4, target may also be an object number, group, or a variable representing an object number.

Example:

;@ lettransparent(T, #5)    ; Set T to the translucency value of object #5.
;@ transparent(T, !MyGroup) ; Set T to the translucency value of group !MyGroup.