How to establish a LOS to a "Solid" object

Get help using Construct 2

Post » Sat Mar 12, 2016 8:52 am

Hi, here is my question:
a sprite with LOS behaviour (in its default config) has its LOS blocked by the first encountered "Solid" object, but (IMHO) a clear LOS to that object should be present (if my player is shooting to a column of Solid tanks, at least the first one should be reachable...)
But, on the contrary, it appears such a blocking object is considered out of LOS by C2.

EXAMPLE: try the C2 stock example "Line-of-Sight" (i.e. the one with Player, walls & pigs). Add the "Solid" behavior to the pigs, and no one of these will be longer in LOS, neither the nearest. Of course, if you change the parameter "Obstacles" of the behaviour from "Solids" to "Custom", all works fine.

Does a simple workaround exist? thanks! :D
B
37
S
5
G
1
Posts: 41
Reputation: 2,036

Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 41 guests