How to use Line Of Sight properly?

Get help using Construct 2

Post » Sun Aug 30, 2015 12:52 am

I've got a bizarre problem in my project. I'm trying to use the Line of Sight behavior to make some rotating cameras that will spot the player. Seems simple enough. But sometimes (about 80% of playthroughs), the "Has Line of Sight" condition will never be true.

The behavior's obstacles mode is set to Solids, and I've got one big tilemap covering the entire layout where I fill in any square that needs to be solid.
Does Line of Sight have any known bugs with solid tilemaps?
B
10
S
2
Posts: 104
Reputation: 1,140

Post » Sun Aug 30, 2015 10:54 pm

I don't use Line of sight, i just use invisible sprite and when the player overlap it the camera will trigger.
This easy to use also great for the performance.
B
60
S
10
G
10
Posts: 1,013
Reputation: 9,165

Post » Mon Aug 31, 2015 2:49 am

That makes a lot of sense, actually. I think I will try that.

Thanks!

Edit: Tried it and it works. Still wish I knew what was wrong with Line of Sight, but at least I can continue with my game now!
B
10
S
2
Posts: 104
Reputation: 1,140


Return to How do I....?

Who is online

Users browsing this forum: draiza and 7 guests