Save attribute test?

GuaveMediaGuaveMedia Member, PRO Posts: 1,262
edited November -1 in Working with GS (Mac)
Hey,

one last question, first of all thank you all for helping me through my first game, I think I will continue making games with GameSalad, it is real fun :) Also my topic in my A-Levles topic will be GameSalad :))

Now my question, when loading my game to the viewer, I can play the game as many times as I want, when I close the game on the viewer and go back in it again, is there load attriute working or not? Because in each level I set, when levelcomplete is true, save attribute and in my starting picture of my game I have for each level a load attribute behavior. But this doesn't work or is it the Viewer?

Thx Alex

Comments

  • ashtmjashtmj Member, PRO Posts: 405
    If you exit the viewer all your saved information will be lost.

    I'd recommend testing on your phone(or whatever device you are using) completed some levels, then exit the game and restart the phone, if everything is saving properly when you reboot the game it'll load your data
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    I am testing on an iPhone 4. Exit the game means just to turn off the device while the game is running, because otherwise you can't exit the game, just with the home button but this will, as you said, cause data loose?

    I tried it this way but it did not work :/
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    To illustrate what I did:

    In each level I have two attributes, levelstars and level complete. When levelstars = 3, level complete is set to true.
    Then I have a master actor which says, when levelstars= 3, save attribute, and in my start menu in the game when I choose and press the button levels, all attributes are loaded...

    Hope this works?

    But how to test now?

    thx
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Can please somebody help me :) I want to upload my game :D
  • GuaveMediaGuaveMedia Member, PRO Posts: 1,262
    Okay, sorry that I post so many things in this thread but I tried something out.

    I tested tshirtbooths score save attribute template and of course it worked, but in my
    game it does not :/

    To explain my situation: I have an actor collecting things, each time when colliding I set an attribute collect to collect +1. When attribute collect = 3, the boolean levelcomplete is set true, an attribute for levelsetfree is set to 1( to unlock lv2, can only be chosen when attribute = 1) and the collect attribute is saved.
    In my levelselect scene I created an actor, not in the scene, that just says, load collect attribute.

    Is there a mistake or why does it not work? ...

    Thx for helping,really appreciate that!
Sign In or Register to comment.