Dev - Lua Libraries

Lua Command: s3sprite.setAlpha

Parameters

Return Values

void

- no return values

Signature

s3sprite.setAlpha(int spriteID, float alpha, bool recursive = false)

Description

Changes the transparency of the sprite with the given spriteID. The transparency is set with alpha which ranges from 0.0 (invisible) to 1.0 (fully visible).

You can also change the color of all children of the sprite by setting recursive to true. By default no children will be changed.