Maze Pathfinding

In the game i’m making, The enemy has a pathfinding behavior, with the walls being set as the obstacles.

The enemy’s supposed to follow a non-diagonal path to the player.

Like this:

But for some reason, It doesn’t move.

The virtual cell and extra border have not been tampered with.

The events to make the enemy follow are there,

HOWEVER, I did set the hitbox to not be so clunky.

image

So how can I get it to follow the player without issue? :man_shrugging:

I’ve found setting the virtual cells to be smaller than the image of the pathfinding character usually helps. And setting the playing characters (player & enemies) origin to the centre of the image also helps.

2 Likes

Thank you so much! You helped me fix it! :grinning_face_with_smiling_eyes: