[Solved] Pathfinding problem

hi guys I have this type of problem when I use the pathfinding movement, when the enemy follows the player and he collides with the wall (pathfinding obstacle) the enemy cannot calculate the player’s position and blocks.
I leave video attached for those who did not understand what the problem was.
Thank you!

2 things you can try to fix this :

  1. Use the player and enemy centres X & Y positions for moving, and not the origin (so Player.CenterX() instead of Player.X() etc).
  2. If that doesn’t help, look at reducing the virtual cell grid height and width (in the pathfinding behaviour of the enemy).

thanks mr men it worked