|
Posted By
|
Message
|
 Windybeard Games
Registered 4/14/2005
Points 101
 
|
5th June, 2012 at 6/5/2012 3:22:09 PM -
Hi
(MMF2 HWA up to date build)
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!
Thanks
SWEEZY GUNNER! Coming soon.
http://www.create-games.com/project.asp?id=2205
https://www.facebook.com/SweezyGunner
|
 nivram
Registered 7/20/2006
Points 111
|
5th June, 2012 at 6/5/2012 4:56:03 PM -
Would you upload your mfa, or a stripped down mfa demonstrating the problem?
Thanks,
Marv
355 open source examples and games
http://www.castles-of-britain.com/mmf2examples.htm
|
 Windybeard Games
Registered 4/14/2005
Points 101
 
|
5th June, 2012 at 6/5/2012 10:17:08 PM -
Hi marv, i will do. i have been told it has something to do with the SUB APP being Modal. would this sound about right
SWEEZY GUNNER! Coming soon.
http://www.create-games.com/project.asp?id=2205
https://www.facebook.com/SweezyGunner
|
 Chris Burrows
Registered 9/14/2002
Points 2396
|
6th June, 2012 at 6/6/2012 4:47:17 PM -
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.
n/a
|
|
|
|