At 2/10/15 10:20 AM, Muja wrote:
Okay, as you said that's not exactly what I wanted... but I can work with this!
Thank you a lot, that really helped!
At 2/10/15 09:35 AM, Tree-SkyLark-BCE wrote:
This may not be exactly what you want, but, assuming the player has Flash Player 10+, your game can prompt the player to save and load local files.
http://www.adobe.com/devnet/flash/quickstart/filereference_class_as3.html
It seems you are happy with what you got but just in case, I think this might be what you want to do:
in Game1:
var Game1Save:SharedObject = SharedObject.getLocal("Game1SaveCookie");
//
//anything you want the game to save, eg. health, stats, etc.
Game1Save.flush();
//
var GameShare:SharedObject = SharedObject.getLocal("GameShareCookie");
GameShare.data.someChoice = false;
GameShare.data.someChoice2 = true;
GameShare.data.something = false;
GameShare.flush();
//
then for Game2:
var Game2Save:SharedObject = SharedObject.getLocal("Game2SaveCookie");
//
//anything you want the game to save, eg. health, stats, etc.
Game2Save.flush();
//
//loading from Game1
var GameShare:SharedObject = SharedObject.getLocal("GameShareCookie");
someChoice = GameShare.data.someChoice;
someChoice2 = GameShare.data.someChoice2;
something = GameShare.data.something;
Yeah, just saying why not try using 2 Shared Objects?
1 for the current game and 1 for sharing between games.