Hey! Long time pixel artist, amateur dev here.
For my first real game I’m working on a platformer. Surprisingly mostly smooth sailing with the help of tutorials but I’m stuck now.
I want my game to have multiple rooms and levels and I’m struggling to transition my player character between them. Obviously change scene does just that, without carrying over any information. I realised that scene variables needed to be changed to global so I can carry money/score over but instance variables like my players health is reset. I’m also un able to work out how to have the player spawn at the correct coordinates (ie. the door that connects to the door from the last scene).
Is there a way to just send one object (my players), instance variables and all to specific coordinates in another scene? Or will I have to set up global variables for the health too? If this is the case, would I have to use global variables to somehow store coordinates for transitioning and if so, how do I go about this?
Sorry for the long winded question, and thank you in advance.
Peace out x