Hosted at the Duke Nukem Repository
Navigate InfoSuite
Hosted At

Link to DNR
Advanced Effects - Lighting - B : Pulsating Lights

Pulsating Lights

These lights use a Cycler sprite to pulsate with brightness.


Make the sectors which you want to pulsate in brightness. With multiple adjacent sectors, you can create a travelling light effect.

The shade of the sectors determines the light's darkest point. The palette of the sectors will be permanent. Place a C[0,LightOffset] (Speed[0,PulseSpeed]) in each sector which will pulsate in brightness. The shade of the C[0,LightOffset] determines the light's brightest point. The LightOffset is the initial offset of the light. The higher valued Offsets light up first. Although the Speed is optional, I recommend using it. PulseSpeed values range from 1 (roughly one cycle every 120 seconds) to 1023 (roughly eight cycles per second).

Note: Using the slowest PulseSpeed value (1), you could easily simulate a day/night cycle.




Return to top