[HELP] Fog of War

For questions about using Classic.

Post » Wed Oct 06, 2010 11:37 am

Is there a way to create fog of war? Not just darkening the invisible area, but to see objects that were there at the moment you've seen them?
Thought about ImageManipulator, but then what if i have 2 sprites on a tile, like enemy and item. Create masks above them for each sprite?
B
19
S
6
G
4
Posts: 171
Reputation: 2,507

Post » Wed Oct 06, 2010 4:36 pm

I would say to try using the canvas object.
B
21
S
4
G
4
Posts: 280
Reputation: 2,934

Post » Wed Oct 06, 2010 6:46 pm

There are some examples of ways to do fog of war in this topic: [url:1t5t6ef7]http://www.scirra.com/forum/viewtopic.php?f=3&t=6674&p[/url:1t5t6ef7]
B
79
S
24
G
54
Posts: 4,750
Reputation: 40,763

Post » Sun Oct 10, 2010 12:24 pm

I mean FOW like in the strategies. For ex. - i saw enemy's building, but when i don't see this place, i still can see the building, even if it already destructed. And when i see this place again i see that there's nothing left.
I'm working on this model of fov right now combining LOS and Canvas, still some problems. Maybe anyone already implemented this, and can donate a prototype?

Added:
Here's my FOW implementation prototype [url:cl5opmr8]http://www.box.net/shared/9tzdjybr3c[/url:cl5opmr8]
B
19
S
6
G
4
Posts: 171
Reputation: 2,507

Post » Sun Oct 10, 2010 2:29 pm

Inverted shadowcaster can be very useful, is it implemented?
B
19
S
6
G
4
Posts: 171
Reputation: 2,507

Post » Sun Oct 10, 2010 7:29 pm

A layer effect could easily achieve that. It wouldn't affect collisions though, and I don't even know if there are collisions for that object.
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests