how do you make your game save

pipepipe Member Posts: 54
I want my game save after its use lets say they are 3 levels when you finish level 1 you unlock 2 so you exit the game and when i enter the game again I want level 2 to be unlocked not to start in level 1. does it do it automatically?

Comments

  • bjandthekatzbjandthekatz Orlando, FlMember Posts: 1,375
    No it does not do it automatically.
    You want to have a "Save Attribute" behavior in the rule after the player finishes the level.

    At the beginning of the game, Whether in the splash screen or menu, add the behavior "Load Attribute".

    This will make it so when the player completes the level, it will save their progress and load it when they join the game.

    Let me know if you need any more help.
  • eggcelenteggcelent Member Posts: 11
    edited June 2013
    nice
  • LoungeGamesLoungeGames Member Posts: 86
    First, you need an integer attribute called something like sceneToGo. Your actor that ends the level should add 1 each time it is overlapped or collides with your player. Then, on the continue button, a rule that says Load attribute - sceneToGoTo. Last, you need separate rules for each change attribute, such as: Attribute - sceneToGoTo=3, Go to Scene - Level 3 (or whatever the name is for your scene that has the third level).
  • natzuurnatzuur Member Posts: 304
    Lots of good info so far to get you started. Keep in mind you can also save and load tables, this comes in handy when you have say 15 attributes you'd like to save, or writable tables that need to be retained after exit. http://cookbook.gamesalad.com/tutorials/2/parts/36 has more info on this.
Sign In or Register to comment.