Saving and loading attributes

When saving a attribute i have to save the attribute as a key. Does this key has to be uniqie from all other saved attributes, or can i save 2 different attributes in the same key?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Each key stores a single value/attribute and can be used to load that value later. To save and load multiple attributes, consider using a table.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • ErikAuranauneErikAuranaune Member Posts: 35
    edited March 2015

    @tatiang said:
    Each key stores a single value/attribute and can be used to load that value later. To save and load multiple attributes, consider using a table.

    Can i load all attributes at same time from the First startup scene?
    I have tried with table, but i didn't get it to work.. So i gave up, hah!

  • LovejoyLovejoy Member Posts: 2,078

    @ErikAuranaune said:
    Can i load all attributes at same time from the First startup scene?

    Yes

    @ErikAuranaune said:
    I have tried with table, but i didn't get it to work.. So i gave up, hah!

    Did you forget to save the table perhaps?

    Fortuna Infortuna Forti Una

  • ErikAuranauneErikAuranaune Member Posts: 35

    @Lovejoy said:
    Did you forget to save the table perhaps?

    I didn't understand how to load and save all levels in my game.
    I have now 16 different levels. And those are also 16 different game attributes.

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Start by Googling gamesalad unlock levels and click on the Videos tab to watch a tutorial.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.