Do you think it's a good idea to use the pathfinding behavior for the ghosts movements in a pacman game? I'm asking because I want the ghosts movements to be in straight lines, either vertical or horizontal as you see in the original arcade game and not curved. I noticed that in the Eat'Em All template the method used is different.
This guy uses the pathfinding behavior.
youtube.com/watch
If you configure the right grid size for pathfinding and disable diagonals, it should work. Also you can use MoveTo behavior to move along the pathfinding path - it will move strictly from one point to another, not cutting corners.
Develop games in your browser. Powerful, performant & highly capable.
stemkoski had a good tutorial about it
https://www.construct.net/en/tutorials/cloning-classics-pacman-171