Actually it does not try to be at the player position, it has a battle range float that measures the difference on the x axis from the enemy to the player but the float is really small, I fixed a lot of problems with the game but since I already submitted the game I cant upload a new file. Thanks a lot for the feedback :D