Line of Sight

  • While experimenting on a simple top down format, I noticed that Construct 2 does not have a Line of Sight Behavior like Classic, is there anyway to substitute range detection so that enemies can chase the player within, say, 300-400 pixels?

    Also, is it possible to implement it in such a way that enemies cannot see past solids, or have the ability to maneuver around corners?

  • Yup, search the tutorials section for good, detailed solutions. :-)

  • I have tried replicating the tutorials but its still not what I want, all of them only apply the line of sight to a single instance of the enemy, and that single enemy determines the stance of all other enemies, meaning that I cant have one guy chase me without the entire pack mauling me

    Any other ideas?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Pin an invisible sprite the size and shape of your intended field of view to your enemy and use it as the line of site. When something collides with it, that is what gets chased, of it collides with a solid disable the follow behavior until the line of site is no longer overlapping the solid. Just a rough idea off the top of my head, but it may be a beginning to what you are looking to do.

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