Hello community! Since the last week I have worked trying to solve myself an issue with the LOS that I simply can't understand, so here I am, I need the community help!
Basically I've drawn an enemy with platform and LOS behaviours. When the Player is in LOS the enemy starts to move and throws stones at the player. Up to here works perfectly.
Now, as the layout is vertically developed, I want to avoid tha the enemies on the upper levels can see the player, and same thing for the enemies on the lower levels.
In order to try to afford this, I have simply granted the SOLID behaviour to COLLIDER object (set on every floor, on every level). COLLIDER has already got the "jump through" but I didn't know if it was "seen" as SOLID or not so I added solid too.
Well, now the enemies can't see me even if I am in front of them.
They have 360 degrees and 800 pixel LOS.
At this point I tried to bypass the issue by setting "custom" on enemy obstacle voice, deleting the solid behaviour on COLLIDER and, at the end, adding the event "every tic - enemy LOS add Obstacle COLLIDER".
By doing this the enemies can now see me through the colliders, up and down, even if I put a collider in front of them.
Is it because the colliders are, obiously, set as "invisible".
Is there a way to solve this? I just want that the enemies can see horizontally in front and behind them, and not up and down.
Thank you for you help guys, and sorry for my bad english (I hope it is enough clear).