Code: Select all
flickerlights:
$flickerlight1 light 1 1 0.24 512
$flickerlight2 light 1 1 0.24 512
local.on = 0
while(1)
{
if (local.on == 1)
{local.on = 0
$bulb1 hide
$bulb2 hide}
else {local.on = 1
$bulb1 show
$bulb2 show}
level.radius = 200-randomfloat 50
$flickerlight1 lightRadius (level.radius)
$flickerlight2 lightRadius (level.radius)
waitframe // don't change the light within one frame
}
endIt must be something simple, but I just dont see it.
