Saving/Loading Game Progress
Harman327
Member Posts: 8
Hey guys
The title pretty much says it all. I've got a game I need published by the 7th of January, and the only way I can do that is if I get it submitted tonight. In the game I've got an Integer attribute called game.level, and I've set it so that, say, if the level is level 1 and the main character reaches the end gate, if attribute game.level is <2, it changes game.level to 2. I have an actor in every scene that saves game.level every second and in the opening sequence of my game it loads game.level. Even with this, if I complete one or two levels and force quit the app, then go back in, the game still starts as if nothing has been saved.
If anybody could please get back to me within about 2 hours with the solution, I will be SO thankful! I've been working on this game for 7 months and this is the absolute last thing I need to do before submission!
Thanks SO MUCH!
Harry
The title pretty much says it all. I've got a game I need published by the 7th of January, and the only way I can do that is if I get it submitted tonight. In the game I've got an Integer attribute called game.level, and I've set it so that, say, if the level is level 1 and the main character reaches the end gate, if attribute game.level is <2, it changes game.level to 2. I have an actor in every scene that saves game.level every second and in the opening sequence of my game it loads game.level. Even with this, if I complete one or two levels and force quit the app, then go back in, the game still starts as if nothing has been saved.
If anybody could please get back to me within about 2 hours with the solution, I will be SO thankful! I've been working on this game for 7 months and this is the absolute last thing I need to do before submission!
Thanks SO MUCH!
Harry
Comments
My GameSalad Academy Courses! ◦ Check out my quality templates! ◦ Add me on Skype: braydon_sfx
Any other suggestions? And happy new year!
Thanks
Harry
DON'T save game.level every second! Make a boolean that turns on when the level is complete, and only have it save it then. Also make a rule that prevents game.level from going backwards, so if a player gets to level 9, then replays level 2, he isn't then pulled back to game.level equaling 3.
Hope this helps
Chakku
I've already set it so that the game.level only changes up if game.level is below whatever number the level is, but I'll give the boolean a look.
Thanks, and I'm still open to other suggestions!
Harry
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS