- Home /
Question by
ThunderStrikeBlue · Nov 12, 2017 at 06:11 PM ·
aidirectionisometriccombat
How to make an enemy AI only move in cardinal directions?
Hi, I'm making an isometric RPG game where the player can move forwards, backwards, left and right, but not diagonally.
How would I force the enemy AI to do the same thing instead of walk diagonally toward the player? The player is unable to attack anything unless it is in front, behind, to the left or right of them, and as a result this is a major issue.
Comment
Doesn't the AI use some kind of pathfinding solution? Then you just need to make sure that the nodes are not connected diagonally.