Stay at the door whenever entering or leaving a scene

Godot Version

4.2.2

Question

Hey! It just came to my realization that whenever I enter another scene with a key press and later leave the scene, the player doesn’t “pop out” where it initially entered.

I am going to try to make this sound easier:

Scene 1 = point A, B
Scene 2

I enter Scene 2 from Scene 1 = point A. When I leave Scene 2, the player spawns at Scene 1 = point B.

I probably need spawn points, to make this work. But I am still pretty new to Godot & GDScript. Can anyone help? If the “explanation” isn’t understandable then please let me know.

Not sure, but whe you reload the scene from B to A, you basically reset it, thus I suppose the object just spawns at its default position, point B, if you want to store positions, between scene, the best way is to use signal between scenes, and from scene1 when exiting pass the exit position to scene B, thus when exiting scene B, you will have your exit position of scene A. But if you have 100 of such scene it is better to then just have something like exit/enter scene spawn points in main level nodes, to call via a function, this will be more flexible I guess.