Hi guys. So I wanted to make a 3 second delay before going in to the next command which on the ff. code is setting a variable for all Tile Entity. The problem however is that it doesn’t seem to work and the tiles instantly closes as soon as the game starts. What am I doing wrong?
Btw, this code is inside the constructor for the World.
var timer:Number = 0;
while(timer < 3){
timer += FP.elapsed;
trace(timer);
}
for each (var q:Tile in gameTiles){
q.animatingClose = true;
}