Stage Element variables

These are the values for stage elements in stage files.

name (String)

An identifier for the stage element. Currently not used.

image (String)

Path of an image file to use

animated (Bool)

Whether or not the stage element is animated, must have an associated .xml file with the same name as the png image file.

x, y, scaleX, scaleY, scrollX, scrollY (Float)

Position, scale and scroll factor of the stage element.

initAnim (String)

The initial animation to play when the stage element is loaded.

antialias (String)

Whether or not the stage element should use antialiasing.

animations (Array<Animation>)

Array of the stage element's animations.

startVisible (Bool)

If set to false, the stage element start invisible.

blendMode (String)

Name of the blend mode for the stage element.

alpha (Float)

Alpha value of the stage element. 1 is fully visible, 0 is fully invisible.