Save high score/name to table tutorial or sample project

Hey!

I want to do something that I am sure the large majority of you have already done:
Save the high score or name to a table so when the user opens the game again (after x days / months / years) it shows him his old progress...

While I see this can be done by load/save attribute, doing a search on these very forums I see a lot of advise saying: "do it via tables" - as a noob I'm not really sure as to how :(
I've also being going through GSHelper's videos (tshirtbooth etc) on youtube and although tables are discussed (hence my basic understanding of tables) no video so far has a simple example for:

enter text, save text for next time, display text
(or maybe it does but I have not seen it :( )

Anybody have a link to a tutorial or has/can make a simple gameproj to do the above please?

Thanks in advance!
R

Comments

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

    Well, saving a table requires a Save Table behavior. That's it. Tables auto-load when an app is launched. It's actually that straightforward.

    Using load/save attribute behaviors works well, too, as long as you are careful about matching the key names. If you have one or two attributes to save, that's a fine way to go but once you get beyond that and have many attributes, you really should be using a table.

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

  • ryastryast Member Posts: 145

    Would you mind making a quick project file and posting it here so I can compare to what I am doing?

    or

    would you mind having a look at a project file that I make and upload and post the link to here?

    Whichever is easier for you...

    I think I have read and seen too many videos and have confused myself :(

  • colandercolander Member Posts: 1,610

    Just do a search "tables game salad" there is already a lot on this out there. There are a lot of tutorial videos here and there is one on tables about half way down the list.

    Other resources;

    GS manuals and templates here

    GS video tutorials here

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

    Here's a demo that shows both methods.

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

  • ryastryast Member Posts: 145

    @colander, thanks for the links :)

    @tatiang‌, you're a legend, thanks a million! :)
    Will bug you again if I don't understand anything :p (although I think I'll manage in this case!)

  • ryastryast Member Posts: 145

    @tatiang, also bookedmarked your $40 hour package in the market, I'm sure I'll pick at minimum one up sometime in future, after I've gotten at least the basics of GS under my belt ;)

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

    @ryast, thanks for the kind words. This is a great community... I've learned so much from others so I try to help out as much as I can.

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

  • ryastryast Member Posts: 145

    Karma is usually mentioned as being a bitch, but she rarely gets mentioned for working the other way around ;)
    Personally, I do believe when people help other people as an unselfish act of generosity, expecting and asking for nothing back in return, they will get a visit from Karma - when she is in a good mood!

Sign In or Register to comment.