My enemy is not chasing the player

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


i mean the sprite2d, the image position

show your player and slime/enemy scene with their sprite

Screenshot 2024-03-22 190708
so sorry for the late response but here u go

set the position to 0 x 0 y