I am new to godot 4 and game dev in general, and I don't have much knowledge on programming, so I've been watching online tutorials to get a grip on how to do things, but I can't find a tutorial on how to transition between scenes in a room with multiple exits, so I wanted to ask about guides, advice, or just outright the code necessary for me to be able to do what I want to do.
Here's the code I am using to transition between a scene and another right now, and I want to say that I just copied this from DewWorm on youtube, so its not my original code!
I've seen a few comments in the youtube video I watched that said something along the lines of having to track the player and see which Area2D it went to, to somehow detect which scene to transform into but... I honestly have no idea on how to track the player, nor have I been able to find tutorials on how to do that.
And thank you everybody that decided to help me!