Line of sight problem

For questions about using Classic.

Post » Tue Dec 16, 2008 5:37 pm

Ok. Im not sure how to explain this but I have two objects.

[color=#00BF00:gmxa7yzl]Object A[/color:gmxa7yzl] is [size=150:gmxa7yzl]stationary[/size:gmxa7yzl] [u:gmxa7yzl](it can't move). [/u:gmxa7yzl][color=#00BF00:gmxa7yzl]Object A[/color:gmxa7yzl] has a very limited line of sight.
It spawns [color=#0000BF:gmxa7yzl]Object B[/color:gmxa7yzl] that can move around and has a large line of sight.

Now it means whatever [color=#0000BF:gmxa7yzl]Object B[/color:gmxa7yzl] sees is what [color=#00BF00:gmxa7yzl]Object A[/color:gmxa7yzl] can see how do I do this?
B
2
G
4
Posts: 50
Reputation: 1,150

Post » Wed Dec 17, 2008 10:09 am

Do you mean see as in, fog of war? Or see as in "detect" things within a certain range?

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966

Post » Wed Dec 17, 2008 6:48 pm

I mean as in [color=#FF8000:gq0vrmnu][u:gq0vrmnu]Fog of War[/u:gq0vrmnu][/color:gq0vrmnu]
B
2
G
4
Posts: 50
Reputation: 1,150

Post » Fri Dec 19, 2008 5:57 am

About the only way that I can think of to make a fog of war system in the game (not on a minimap) is to use the light/shadow plugin. You could then have everything dark, and the object which is doing the "Seeing" would have a large light caster.

That's probably about the only way I can think to solve your problem, at least with the information you have given me.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
45
S
17
G
37
Posts: 2,853
Reputation: 25,966


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests