i want the player when exiting the store to respawn near that balck dot but he respawn in his first x and y cords
This thread might be helpful:
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 m…
Check the responses of krunkster and jack!
Basically, you need to set up a system that makes it clear at the beginning of the scene whether you came through the door or some other entrance. You need to use global variables for that. The more scenes and doors/entrances you have, the more complex it will be.
There is another, maybe easier solution that you can find here:
Hello. I want the player to switch scenes back and forth between both doors in different scenes, but I’m not sure how to go about doing that. I also want the scenes to not start over when the player switches between them. For instance, if the player has already talked to a character that is walking by, when the player goes back that scene the character doesn’t restart and instead continues on. Or if a player talks to the a character, the dialogue doesn’t restart each time and continues on. If an…