i mean with the line of the code i shown, newest code
that is meant to be
global_position += (player.global_position - global_position)/speed
what do you mean?
i think your player sprite2d is not at 0,0 position?
or the enemy, so it looks like there’s always a gap between the player and enemy
they both arent at 0,0
so sorry for the late response but here u go
set the position to 0 x 0 y