0 Favourites

Enemy pathfinding help

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

  • Construct 3

    Buy Construct 3

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

    Buy 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)
Similar Topics Posts Views Last Post
Unread hot topic
157 12,693
megatronx's avatar
megatronx
Unread hot topic
105 16,949
Magistross's avatar
Magistross
Unread hot topic
0 Favourites
Kiira will help! :D
132 16,616
Kiira's avatar
Kiira