Hey!
I have got a "little" problem with my lights.
"little" because it is no huge problem, but something, I can't understand, why it is happening.
So, here it is:
I have some lights via script on entities in my game.
function Kohlenpfanne01()
{
while(!player) wait(1);
set(my, INVISIBLE);
my.lightrange = 100+random(100);
my.red = 170;
my.green = 170;
my.blue = 20;
set(my, CAST);
int flackern;
int aufflackern = 1;
int schrumpfen = 2;
while(1)
{
if(my.lightrange < 100) flackern = aufflackern;
if(my.lightrange > 200) flackern = schrumpfen;
if(flackern == aufflackern)
my.lightrange += (4+random(2)) * time_step;
if(flackern == schrumpfen)
my.lightrange -= (4+random(2)) * time_step;
effect(p_kohlenpfanne_feuer,my.lightrange/80,my.x,NULL);
if(vec_dist(player.x, my.x) > 1000) my.lightrange = 0;
wait(1);
}
}
They increase and decrease their lightrange.
I press 2 times F11 to see the radius with the yellow cubes ingame.
If I change the camera-angle, there appear some other yellow cubes, suddenly.
I don't know why. Did this happened to you, too or do you know why this happen?
Here a picture for better clarity.
first: the scene without F11, second the scene with 2xF11, third the scene with 2xF11 and a different camera-angle: