Namespace: CMScenery

CMScenery

Methods

getOpacity()

Returns a number between 0 and 1 representing the opacity

getPosX()

Returns the x position of the scenery

getPosY()

Returns the y position of the scenery

getRotation()

Returns the angle of the scenery in degrees

getScaleX()

Returns the X scale of the scenery

getScaleY()

Returns the Y scale of the scenery

setOpacity(value)

Set the opacity this scenery.
Parameters:
Name Type Description
value number A number between 0 and 1

setPosX(value)

Set the X position of this scenery.
Parameters:
Name Type Description
value number The x position of the scenery

setPosY(value)

Set the Y position of this scenery.
Parameters:
Name Type Description
value number The y position of the scenery

setScaleX(value)

Set the X scale of this scenery.
Parameters:
Name Type Description
value number The x scale of the scenery

setScaleY(value)

Set the Y scale of this scenery.
Parameters:
Name Type Description
value number The y scale of the scenery