line of sight

0 favourites
  • 4 posts
From the Asset Store
solution for games like "fruit ninja" and drawing applications
  • Then I have a family (snake) formed by several objects, when the player has a view one of those objects check if it is already in the array if he is not adding it, I want you when you stop seeing all the objects that make up a Snake this it is removed from the array, it configures it in this way and it works, but eliminates the snake of the array because one of the Snake parts is not being seen, which makes sense and does not affect because it is added again later. But I want it to be added 1 time and that is deleted 1 time. How do I do it?

  • If you could rephrase the question so it's more like a human asked it that would be useful. Help us to help you.

  • If you could rephrase the question so it's more like a human asked it that would be useful. Help us to help you.

    When Linesight see an object keep your UID on an array and when you stop seeing it eliminate it

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I don't know if that top condition is really going to work but I'd have to test it myself. If you don't have line of sight you can then check if the array contains the value like you did in the second condition, and if it does then delete the cur X.

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