Line of Sight issue

Get help using Construct 3!

Post » Sun Jul 16, 2017 5:17 am

Hello.

I'm using line of sight to see if a projectile can hit it's target. aiming is with a crossheir like an arcade on rails shooter. Players will aim said crossheir with the right stick, and if they can see the point their crossheir is at. they can fire.

I wanted an invisible door that players could pass though, but not projectiles. If I made said door solid players would not be able to pass. So I added the door object to the line of sight as a custom obstacle.

yet for some reason the weapon can still see the point. it works fine with a solid obstacle. (the black wall.)

Ideas?

Image
B
10
S
4
Posts: 52
Reputation: 856

Post » Sun Jul 16, 2017 12:41 pm

LOS works flawless.

https://www.dropbox.com/s/xbkyej0szutnf ... .capx?dl=0

You must have a logical flaw in your events.
B
33
S
18
G
27
Posts: 2,447
Reputation: 20,358

Post » Sun Jul 16, 2017 5:51 pm

Oh ok I see. My issue was I only had one line of sight set to solids. and added the custom obstacle thinking it would still include it. (I feel adding a custom obstacle should always work though. But whatever.)

I added a second LOS behavior and set it to custom like you did. and that fixed it.

Thanks.
B
10
S
4
Posts: 52
Reputation: 856

Post » Sun Jul 16, 2017 6:57 pm

Ahhhh, nope, when it is set to Solid, you can not add others to it.

But you still can do it with 1 LOS behaviour and obstacles set on Solid.

Enable/disable Solid is personal, per instance. As this example shows.
https://www.dropbox.com/s/q0z9707j5njjh ... .capx?dl=0

Also with LOS.

https://www.dropbox.com/s/cbe1i1xgbrecy ... .capx?dl=0

Click on a tile to Enable/disable Solid.
B
33
S
18
G
27
Posts: 2,447
Reputation: 20,358


Return to How do I...?

Who is online

Users browsing this forum: No registered users and 0 guests