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. |
getDebugMode()
Returns true if the light shows debug graphics, false otherwise.
Returns:
Type | Description |
---|---|
true if debug mode is activated. |
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. |
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. |
getHeight()
Get the height of the light object.
Returns:
Type | Description |
---|---|
height of light object. |
getObstaclesManager()
Get the light obstacles manager if objects with the behavior exist, null otherwise.
Returns:
Type | Description |
---|---|
gdjs.LightObstaclesManager if it exists, otherwise null. |
getRadius()
Get the radius of the light object.
Returns:
Type | Description |
---|---|
radius of the light object. |
getTexture()
Returns the path of texture resource.
Returns:
Type | Description |
---|---|
the path of texture. |
getWidth()
Get the width of the light object.
Returns:
Type | Description |
---|---|
width of light object. |
setColor()
Set the color of the light object in format "R;G;B" string, with components in the range of [0-255].
setRadius()
Set the radius of the light object.