Enemy pathfinding help

0 favourites
  • 3 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Not quite sure why this is a thing, but it is. For one of the tutorial stages of this shooter game I'm making, there are two enemies encased in breakable rocks. Upon breaking the rocks, the enemies should be set loose, and begin to chase the player. However, they don't. I had a theory, and so I gave it a test. I was correct. For whatever reason, even though the rock isn't there anymore, the spot where the rock used to be is blocking the enemies line of sight to the player. There is no object to block it, it's as if the rocks ghost is magically blocking the path. Any ideas for why this is happening?

  • There is an obstacle map, which all pathfinding objects can see. If you destroy an object, it does not change the path in their eyes, they can still see the object there. You need to regenerate the obstacle map whenever you change something, it's one of the pathfinding actions.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There is an obstacle map, which all pathfinding objects can see. If you destroy an object, it does not change the path in their eyes, they can still see the object there. You need to regenerate the obstacle map whenever you change something, it's one of the pathfinding actions.

    Yeah, I ended up figuring that out on my own. Thanks anyways.

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