LightRuntimeObject

LightRuntimeObject

Displays a Light object.

Constructor

new LightRuntimeObject()

Source:

Methods

getColor()

Get the color of the light object as a "R;G;B" string.

Returns:
Type Description

the color of light object in "R;G;B" format.

Source:

getDebugMode()

Returns true if the light shows debug graphics, false otherwise.

Returns:
Type Description

true if debug mode is activated.

Source:

getDrawableX()

Get the x co-ordinate of the top-left vertex/point of light object.

Returns:
Type Description

x co-ordinate of the top-left vertex/point.

Source:

getDrawableY()

Get the y co-ordinate of the top-left vertex/point of light object.

Returns:
Type Description

y co-ordinate of the top-left vertex/point.

Source:

getHeight()

Get the height of the light object.

Returns:
Type Description

height of light object.

Source:

getObstaclesManager()

Get the light obstacles manager if objects with the behavior exist, null otherwise.

Returns:
Type Description

gdjs.LightObstaclesManager if it exists, otherwise null.

Source:

getRadius()

Get the radius of the light object.

Returns:
Type Description

radius of the light object.

Source:

getTexture()

Returns the path of texture resource.

Returns:
Type Description

the path of texture.

Source:

getWidth()

Get the width of the light object.

Returns:
Type Description

width of light object.

Source:

setColor()

Set the color of the light object in format "R;G;B" string, with components in the range of [0-255].

Source:

setRadius()

Set the radius of the light object.

Source: