Once I move torwards enemy it stops attacking how can I fix this?

Good day, I’m having a problem with A* once the enemies start moving towards the player and the player starts to do the same. The enemies stop attacking the player since the enemy its too far away.

See gif:

Hi

This seems to be an issue in the scripts you use to control your character. It’s hard to help you with that since I don’t know what code you are using, and it is a bit outside the scope of this help forum.