hi..
I copied the Fog of War code from the AUM..
Now i got a new problem...
how am i able to ask for the floor entities???
the AUM Code askes for the player:
if(vec_dist(boden.x, my.x) <= 350)
{
while(my.alpha >= 5)
{my.alpha -= 3;wait(1);}
ptr_remove(my);
}
But i create entities, where no fow should be over, and at 50 pixels each side.
The floor ents are stored inside an array ( 4000 stacks ). How to let the script ask for all 4000 places of the array paralell to the gameplay???
Variable code:
var i = 0;
var mouse_move[3];
var bodentiles[4000];
var bodentiles_start = 0;
while (i < 4001)
{
bodentiles[i] = 0;
i += 1;
}
the ent_create part:
// Boden_normal ( immer gesetzt, alles andre iss drüber )
bodentiles[bodentiles_start] = ent_create("Ground.mdl",vector(temp.x,temp.y,2),object_boden);
bodentiles_start += 1;
you see.. every floor ent is stored in a specified place of the array...
The Fog of War Bitmap has a size of 8x8... so i need on a 150x150 Field map ( each field has 64x64 pixels ),...
180000 Fog of War entities.. only for fow...