Save score Atribute on GameSalad (and load after game is turned off)

hello everybodo so i want to know how to Save score Atribute on GameSalad (and load after game is turned off)
thanks

Comments

  • mrpacogpmrpacogp Member Posts: 400
    edited February 2013
    Use tables and store it.
    Remember to use save table after save value on table.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    There are plenty of video tutorials if you search for them. Tables are best, especially if you want to store multiple attributes. For a single attribute, you can use Save Attribute and then use Load Attribute to retrieve it from the device.

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

  • tiestotiesto Member Posts: 122
    sorry but I don't understood.
    can you explain me what did I had to do so it works
    thanks
  • GS_MasterGS_Master Member Posts: 159
    Obviously you haven't done any research or looking around on how to do this but there are many tutorials out there I can guide you to...

    You should also do what mrpacogp said and save those attributes in a table.
  • tiestotiesto Member Posts: 122
    yeah i have already see it but when i reset the scene the score turn to 0
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Saving and loading attributes only works on a device, not in Preview. If you are testing it on a device then you need to make sure that your Load Attribute is at the start of your game and that you don't have other rules that reset the score to 0.

    If you are stuck, post screenshots of your rules. Without those, we cannot help you.

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

  • tiestotiesto Member Posts: 122
    so if I understood when I use save/load attribue it will work even if I turn my device off
    because I have text attribue, I change it and when I touch back to return to the scenes and I choose the scene where I want to load my text attribue it show me nothing.
    but when I put a change scene actor into my scene, and I change my text attribue and touch the change scene actor to go to the scene where I load my text attribue it works the text attribue is changed.
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    @tiesto This will only work on a device, not in Creator Preview. And yes, it will keep the data. Post a screenshot of your Load Attribute and Save Attribute rules. Also make sure that the Load Attribute behavior is the first behavior/rule to run on the first scene.

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

  • Braydon_SFXBraydon_SFX Member, Sous Chef, Bowlboy Sidekick Posts: 9,273
    edited March 2013
    @tatiang - Perhaps I am not reading correctly, but...I can test if my save/load attributes work in preview. You just need to hit the reset icon and if everything is set up correctly, your attribute will save and load when you enter that scene again..?
  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Honestly, it's been a long time since I've tested save/load attributes in Preview. You're probably right!

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

  • tiestotiesto Member Posts: 122
    sorry for the delay
    hank you for your explanation
Sign In or Register to comment.