How do I see the object that should block my LoS further.

Get help using Construct 2

Post » Tue Sep 27, 2016 11:00 am

Hey guys

I have an issue. I have walls, walls are solid and are listed as obstacles for my Line-of-Sight behaviour. All is well but the fact that I also don't see the walls that should be visible - just blocking stuff that's behind them. Any ideas what I'm doing wrong or is there a known *duh* workaround for this that I ain't getting?

Cheers
B
18
S
3
Posts: 65
Reputation: 994

Post » Tue Sep 27, 2016 12:09 pm

Just for firther clarification. The wall is part of the map enviroment. By design i need to hide all the map enviroment until i see it, for exploration purposes - so I cant really use it in the traditional way that it just blocks vision but is not open to being hidden itself. On the contray, I need it to both stop vision passing through while also hiding other walls behind it, but i need to see the wall that stops me from seeing behind it...hope I make sense.
B
18
S
3
Posts: 65
Reputation: 994

Post » Tue Sep 27, 2016 1:16 pm

LOS does not see obstacles. Whats more, it kan not see trough obstacles. So if you make the 'viewer' solid with solids as obstacles it can not see trough itself.

I suppose the easy way is to have the LOS behavior attachted 2 times. With custom obstacles.

1 To not see trough the walls, with its event system.
1 To see the walls, with its event system.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Tue Sep 27, 2016 1:30 pm

Hey thanks

How do I make it see the first walls, but not any walls that may lay behind the them? Wouldn't this just reveal all walls in my LoS?
B
18
S
3
Posts: 65
Reputation: 994

Post » Tue Sep 27, 2016 10:38 pm

I dont understand ? If it can not see trough the first walls, it will not see those behind them. It will not reveal anything behind an obstacle.

Does this capx shows you the possible combinations ? And the principle ?
https://www.dropbox.com/s/5fogt05zwrwnu ... .capx?dl=0

The LOS is really a nice behavior.
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Wed Sep 28, 2016 10:45 am

Hey, great!

Thanks, I think I see what I need in this example.

Cheers
B
18
S
3
Posts: 65
Reputation: 994


Return to How do I....?

Who is online

Users browsing this forum: DolyGamesCosmos and 23 guests