Invert Line Of Sight

0 favourites
  • 6 posts
From the Asset Store
solution for games like "fruit ninja" and drawing applications
  • 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.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've encountered the same thing. I can only assume it's a bug.

  • same here.

  • 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.

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