Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

How do I go about adding basic pathfinding to my enemy?

$
0
0
I have a top down 2D game, and I need the enemy to go from its current position to a different one (I know the location of where it needs to go). Currently, I rotate the enemy to face the new position, and then make it go forward. However, if there's a collider in the way then of course it will just bump into it and get stuck. How do I get it to go around colliders and add some basic pathfinding? Any advice is greatly appreciated!

Viewing all articles
Browse latest Browse all 1488

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>