Godot Version
4.5 beta 4
Question
Hallo. I’m facing a pretty frustrating problem. It’s super hard to show my code because there’s thousands of lines but I’m throwing this here, so that if someone knows the answer, pls help xD
The levels are imported from LDtk but that shouldn’t matter. In said scene, the player’s default position is Vector2.ZERO, which it is at the first frame. Though, when the save system kicks in, it throws the player somewhere very far away, say, coordinates (4920.0, 1240.0).
I have, in my scene, tens of Area2Ds which act as level triggers. But these are only constructed a frame after the player has already been moved to its new position. Though, without fail, the Area2D which overlaps the point (0,0) gets triggered, leading to the player being teleported to the beginning of the game, even if they were quite far away.
I should mention that during the teleporting and transitioning to a level, the game is paused, which may affect the situation.
If anyone checks thru my profile you see that the issues I face never get any replies, and I always find a workaround. Which I will try to find. But its a frustrating issue. Any help is appreciated. Thanks!