Hello everyone. Once again I request your help
I'm trying to create fog of war, which is partly successful. To create it I'm having a background black image which is the undiscovered layer. The "ground" which is foggy as the layer that the player has passed but is not viewing right now, and the ground that is visible 100% inside his field of view.
To draw the foggy ground I'm using the Graphics Extension, so in every frame I draw the viewing range. However if I draw too much the there is a frame rate drop, because I don't clear what I've drawn. Is there a solution to this?
You can view the sample project here: https://dl.dropboxusercontent.com/u/3094026/StarlingGraphicsTest.zip which also contains the swf file.
PS: I'm also using Pixelmask extension to mask all these.
Thanks to everyone who read this