Scene transition help

Parts of your answer make sense but I feel like I’m missing some key bits here. Are there any example projects of this about I could take a look at? I’m slightly confused about setting the global variable while transitioning, and how that works. And how I’d even set the player starting coordinates.

Thank you for your detailed response, sorry if I sound like an idiot, very new at this kind of thing.