In my 2D space game I'm instanciating a generated system-scene when the player-ship enters a specific area and add it to the world node. Once the player leaves this scene by moving to a specific distance I remove the scene and set the player's position to it's entering position (previously saved by a singleton).
(this way I can open and close systems from the game-world pretty easy without losing important references)
There are 2 possible outcomes:
--> when I add print(String(singleton.player_ship.global_position))
after setting it's position it works
--> when I don't add it, setting it's position to it's entering position doesn't work
This kinda confuses me a lot :/
Does anyone know why this problem might occures?