SOLVED Help needed with planning out Save& Load Game Behaviors

SpookyBurger

  • Posts: 82
Hi, I'm having some problems utilizing the Save/Load game blocks so I'm going to fully plan out how I want to save/load in my game before I make any more awful attempts.

- how do I keep track of what scene the character is in using game attributes?
- how do I keep track of what enemies have been killed using game attributes?

« Last Edit: March 26, 2013, 10:02:15 am by SpookyBurger »
Please try out my latest build of Patient 9 here.   http://www.stencyl.com/game/play/23179

dtrungle

  • Posts: 1938
I use a GA such as numStage. Whenever a scene starts, set numStage to a number. Generally you'd want to name your scene with incrementing numbers so that you can use those numbers in the GA.

For the second one, I would use a list where each index represents a stage. Inside the list will be another list that holds true/false in each index where each index represents a specific enemy.

Both situations can be done in different ways especially the second one as it will get more complicated when what you want is more complex.

gruffman

  • *
  • Posts: 564
Quote
how do I keep track of what enemies have been killed using game attributes?

If you mean for example what level bosses have been killed, you could have a Game Attribute that holds the last boss to be killed eg "3" if the player has cleared the first 3 stages.

What sort of game is it and what do you want to do exactly? If you want to log every single enemy the player has ever killed that would be hard work, and I cant think of a good reason you'd want to do that.
Now available for all Android Devices - Happy Face Concentration
My Games To Date
Find A Face / Hero Of Oda / Snakes And Ladders
Hungry Monkey available at fgl.com for Sponsorship
My site - Gruffgames.com

Hectate

  • *
  • Posts: 4645
gruffman: it's not uncommon to have achievements that track total kills or other "lifetime" stats.
:
:
Patience is a Virtue,
But Haste is my Life.
Proud member of the League of Idiotic Stencylers; doing things in Stencyl that probably shouldn't be done.