This may be an easy question for most of you- but I am still a noob in a lot of ways! I apologize if this has been answered before.
Question is- If I want to load a new layout at a point in my current layout- use the new one for a bit then return to the previous one from the exact same point- is there a way to do that? Ive tried saving and loading... but that erases everything that was done previously and its like you never did any of it- all global variables are reset to their values at the point of save for example.
Simple usage of what I am talking about- top down RPG style game, you walk up to a video game console / arcade machine- use it- and you load another game from another layout. Snake for example. In the main game you get some achievement if you play for X amount of time or reach X score- so I want to keep track of that stuff. When the arcade mini-game layout closes I want to be exactly where I was prior with just the variables affected that keep track of these things.
This is just an example of what I am trying to do- How would you recommend going about something like this? What if my game has multiple instances of this? Ive found lengthy ways around it which is a pain but works- such as setting another variable telling the game that it was last at the video game console, so if it loads that layout with that value true it puts you there- written out like this it doesnt seam like a big deal but it gets tedious when Im doing it so many times. Is there a better way?
Thanks!