The code I added here places the enemy in its 'true' coordinates-- ignoring where it would be with a scrolling background Then we move the enemy towards the "Player target" sprite, which is at the 'true' of the player. By using world coordinates for enemy pathfinding it prevents the movement of the background from affecting the path of the enemy. Afterwords, after updating the true position of the enemy, we reposition it to its world coordinates, accounting for the background offset. I like how the game looks btw. I changed the costume of the rain into a gradient to make it more "rainy"