Im having a little trouble with saving numbers to an array from a sub app. Basically what im doing is i have a shop in the game that runs from a sub app, when you buy something it saves the fact that its been purchased to the save file array. It works and in the debugger i can see that the number has been assigned to the array, However when i then exit the Sub app back to the main game the array no longer holds the numbers assigned from inside the sub app.
The array is being correctly loaded after exiting the sub app in the main game, its as if the array inside the sub app is a different Array.....
I have no idea what the issue is. any help would be vastly appreciated!
Arrays are global between the frames of your main application but not between frames sourced through a SupApp object. The work around is to save your Array to an external file from within the SubApp and then load that file again from the main frame.