GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

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 Posts: 11,844Member, Sous Chef, PRO, Senior Sous-Chef

    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 Posts: 35Member
    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 Posts: 2,078Member

    @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 Posts: 35Member

    @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 Posts: 11,844Member, Sous Chef, PRO, Senior Sous-Chef

    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.