save / load feature

ovechkin8ovechkin8 Member Posts: 42
edited November -1 in Working with GS (Mac)
Ok I am really far along in making my game. I would now like to spend a few hours perfecting a save load feature to the whole game not just an attribute like score or something. So like at the end of the level for example is it possible for you to save the game and go back to doing something else and then later come back and load it at the next level. If some one could help me that would be awesome.

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    with my latest game, stunt squirrels!, I am loading/saving about 180 attributes.

    for your question about the levels, you would have a global game attribute (integer) called currentLevel. Every time you beat a level, you would increase this attribute by 1.

    Then if you quit and reload the game, you would have a bunch of Rules that say something like:

    When currentLevel = 1
    got to Scene 1

    When currentLevel = 2
    got to Scene 2

    etc...
  • JGary321JGary321 Member Posts: 1,246
    FMG: Do you load all your attributes at game start? Or throughout the game?
Sign In or Register to comment.