Invert Line Of Sight

  • I'm having trouble picking objects that are not in line of sight by using the new Line Of Sight condition and inverting it. Nothing seems to get picked. Is this a bug or just not possible?

    You can try it in the example that comes with r134. Just invert the line of sight condition there, and no piggies get highlighted.

  • I've encountered the same thing. I can only assume it's a bug.

  • same here.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • It behaves strange for me as well, but remember to post things like this in the bugs forum or the issue might not be adressed. I'll do it this time.

  • Well its a behavior so it would logically apply to just the objects that had the behavior.

    What you could try is a variable comparison like if sight = 0 then do foo, and then add a condition to change that objects variable when it is picked by the behavior object, set sight to 1.

    You might also want to add an else after that condition to set that variable back to 0.

  • I managed to solve "invert" issue with else statement. Tho I had problem where first spawned object didnt not understood LOS, had to destroy object and create another instance before LOS started to kick in.

    Funny enough, doing "does object has LOS on player" returned false, even when object had line of sight to player and it worked, just boolean returned was wrong.

  • I try to post this to bug report forum, hopefully C2 team can fix this. If this is not a bug perhaps they can explain how this condition picks object after being inverted.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)