Right now I use an Area2D node with the following code to allow me to switch between scenes whenever the player collides with the Area2D node
export(String, FILE, "*.tscn") var next_world_scene
var bodies = getoverlapping_bodies()
for body in bodies:
if body.name == "Player":
This all works great but the big issue I have is that for my hub world, there are multiple scenes to transition to so when you go about different scenes, you don't leave the same way you came out of.
Basically imagine playing Link To The Past, but every time you left a dungeon to go to Hyrule Field, you always spawned at the center of the map rather than by the exit you just came out of.
I'm going to assume AutoLoads is going to be my best bet but not sure the best way to go about this. Any help would be sincerely appreciated.