Fog of war
I have been trying to implement fog of war for a game I'm making. I have tried several approaches but none have turned out successful.
Alpha tiles:
This was the first thing I tried, unfortunately covering the screen in this many tiles all with alpha levels caused too much lag and I abandoned it.
Vector drawings and blend mode:
Next I tried drawing a dark rectangle and Blendmode.ERASE in out the things I want the player to see. With more than a few light sources this becomes laggy and becomes horrible if I apply a blur filter.
Masks:
Finally I tried masks, unfortunately they aren't very flexible(one mask per movieClip and such.) They didn't fit the bill.
Do you have any alternative suggestions/methods to make these work?
