Hello, I was wondering if any of you could help me figure out how I would start to program my own Fog of War feature in a RTS game. Imagine a RTS game like Age of Empires or War Selection, they have Fog of War features that prevent the player to view undiscovered areas of the map and when they do discover that part of the map, it will turn into a dark/light gray. You won't be able to see enemy troops in the dark/light gray area but you will be able to see what it looked like after your troop left the newly discovered area. Then of course, if a building or unit it around the area, it is all visible to the player.

I am unsure on where to start on making this, I thought of messing with the Brightness in the Lighting Service but still not sure how I would go around to make what I just described.

If anyone could help me with this then that would be a great help.

EDIT: RTS stands for Real Time Strategy for anyone that doesn't know.

2 comments

0

Can you elaborate? Is your system tile based?

0

It is a real-time strategy 2D "free roaming" game. Basically think of the Conquerors 3 but more of a 2D top down view without a character for the player.