How do I see if there is an object withing a certain range?

0 favourites
  • 2 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • Hi Everyone,

    I'm to setup system where 1 pylon sends a "data packet" to another pylon that is withing range and in a cardinal direction. I'm currently using the LOS behavior to check if there is a pylon in range and in the appropriate direction.

    This works... sort of. A side affect is that the pylon that doesn't have another pylon next to it to receive the data packet, it still creates the packet and it shouldn't.

    Since the sending and receiving pylon are the same, I think the LOS is seeing itself and creating the data packet. Could this be the case?

    Is there a better and easier way to do this?

    I tried doing a turret/bullet combo, but couldn't get that to work either.

    Any advice is greatly appreciated.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It's hard to say without seeing your code.

    A common trick is to add object to a family and do something like this:

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