User Tools

Site Tools


positional_light

Positional Light


A positional light, or omnidirectional light, emits light in all directions from a specific location in the scene. Positional lights are ideal for light sources like torches and light bulbs. This type of light can be attached to tiles, objects, and characters by marking them as a light source from the Model Properties panel.

The table below describes each of the settings that can be adjusted for a positional light.

SettingsDescription
EnabledDetermines the initial state of the light. You can use the Set Entity Light Enabled function to change the state of an entity's positional light source via scripting.
ColorColor of the light emitted. You can use the Set Entity Light Color function to change the color of an entity's positional light source via scripting.
DiameterDiameter of the light. The higher the value, the further the light will reach within the scene.
IntensityOverall brightness/energy of the light. The intensity value can range anywhere from 0 to 64, with a default value of 1.
AttenuationFalloff/reduction of the light's intensity. The smaller the value, the less the intensity is reduced as the outer edges of the light are reached. For example, an attenuation value of zero causes the light to keep its full intensity even at the outer edges.
X PositionIncrements/decrements the X coordinate value of the light's position within the map.
Y PositionIncrements/decrements the Y coordinate value of the light's position within the map.
HeightIncrements/decrements the Z coordinate value of the light's position within the map.
positional_light.txt · Last modified: 2017/08/15 08:29 by justin