Line of sight, seeing an obstacle?

Get help using Construct 2

Post » Wed Jul 23, 2014 4:32 pm

I would like to know if it is possible to make the line of sight behaviour see an obstacle, not seeing through it, but just seeing it, the object doesn't have the obstacle visible in his line of sight, even though it logically should have it when it is blocking his view.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Jul 23, 2014 4:52 pm

Use the "Is within angle" condition and set Within to 180?
B
25
S
6
G
3
Posts: 197
Reputation: 3,355

Post » Wed Jul 23, 2014 4:54 pm

the problem is that will let objects behind the obstacles be seen

@Twintails
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123

Post » Wed Jul 23, 2014 4:59 pm

Can you not check the range?
B
25
S
6
G
3
Posts: 197
Reputation: 3,355

Post » Wed Jul 23, 2014 5:02 pm

Can I have the use case to make sense of the problem in my head?
B
61
S
22
G
10
Posts: 647
Reputation: 10,453

Post » Wed Jul 23, 2014 5:14 pm

Basically, I want to see the wall so I can show it over a shadow (Z ordering modification based on the shadow caster), If I cannot see it but it is in my range, I want it to be placed under the shadow caster.

So if I can see it, I would make it visible, but if I cannot, making it invisible. I though of LOS since the shadow caster does not have the option to check what is under the shadow and what is not under it.
Now that i think about it, it is probably not the best way to do it.

@Mr E Bear
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
53
S
22
G
18
Posts: 2,122
Reputation: 17,123


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests