Not really sure what are you talking about mate, but are you using scene vars or global vars?
At the first look it seems you are using scene vars. But if you want to go through scenes then global vars are the right option.
Im really dont get that “make scene persist” 'cause the moment you have a scene, well, the scene stays there no matter what (unless you make a couple of events in order to change it).
The variable charslot1 is global, and it stays activated when I leave the scene, but when I exit the scene to go to the home scene, the common object(which is global if that matters) returns to its start position, and disappears from where I put it.
By scene persist I meant when I change the scene(move the common object to the slot object) I want it to stay there when I go to home scene.
GD lets you pause a scene before switching, with the action “Pause and start a new scene”. If you use it, the paused scene state will be stored in the memory, then you can use the action to go to the previous paused scene (the action “Stop and go back to previous scene”), the paused scene will be resumed.
EDIT: But for complex scenarios, I think you’ll need global variables anyway
Sorry if double posting is allowed, but I had an epiphany and thought I should update for anyone that is looking for something similar!
I changed my whole way of thinking about this and instead of moving the object decided to make the object already there with layers then activate it with global variables and layers! I feel really silly but I am glad that it works now.
I have modified platform game to test switching screens. The main screen of the platform game is called “New scene”. During half way of the game, I manage to use “Pause the scene and start ‘Bonus’” where Bonus is the name of the second screen.
On the second scene - Bonus. I put a sprite to trigger the event “Stop the scene and go back to the previous screen”.
The Bonus will close and screen switched over to “New screen” but it did not resume from the last position instead started from new again.
Could someone help to to make the game resume after switching? Thanks in advance
You must delete the object “Question”. Change to scene Bonus AND delete the object Question. Otherwise happens a loop between both scenes.
Also, in the Bonus scene, i think you just need one action, the “Stop the scene and go…” and not the other action you have there.