HI guys, i would like to create a Fog of War system similiar to Counter Strike 2D in my game. I dont know if you ever played CS:2D, if not here is a video that shows its fog of war:
<— go to minute 0:50
So it’s like a cone of vision that start from the player…any suggestions on how to start?
Not exactly the same but here is a short tutorial I wrote earlier this year how to do something similar:
The relevant bit for you is how the mesh is built.
In your case you’d just replace the generated mesh material to something else (like black or dark transparent) and use your player character as the center from where you generate the mesh. You can ignore all the bits about camera setups etc. It wouldn’t be tile based system like in your example video though.
There is also at least one commercial product available in the asset store but I can’t recall the name of it.