This is my code, basically I want that went this characters gets out of screen from the top it appears from the bottom, the camera is following the player so it should update at each frame the position they need to appear, but currently it seems that doesn't update properly and it doesn't follow the camera correctly the enemy appear and disappear from a static limit.
global_position += vel
global_position.x = wrapf( global_position.x, GameManager.gameCamera.limit_left, GameManager.gameCamera.limit_right )
global_position.y = wrapf( global_position.y, GameManager.gameCamera.limit_bottom, GameManager.gameCamera.limit_top )```