Basically I am using global variables from alterable values in global objects and I found out that the changed variables in a global object will be saved even if the frame you are on doesn't have that object and then you go to one that does, all it's changed variables will be there still. So I wanted to know if there was any way I can restart them all back to 0 and all it's flags reset and strings. Because when I go back to the menu screen and start a new game, I want it to be as if I never touched it before.
The reason i'm doing it like this is because my game works off of multiple frames not just on 1. And there are things I would like to be saved like if the character is holding something, I made a global object called hand and it has a string that says what the character is holding. When I go to another frame that doesn't have the character in it and then come back he is still holding that item. (That's what I want) But if I go to the menu screen and start a new game he is still holding that item.
Any way I can reset all of the objects I want? Would I have to make a frame with every object I use and reset it that way? Help would be greatly appreciated. or some knowledge on global objects. (The editor Synchronization is set to same name same objects if that helps)