[Solved] Player position when switching rooms with global variable?

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:

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: