Having issues with saving/loading attributes

T8TRG8TRT8TRG8TR Member Posts: 120
edited February 2012 in Working with GS (Mac)
So I have an actor in my splash screen that loads key "HS" to attribute High Score. In my play scene, I have an actor who checks if Score > High Score and saves the Score to key "HS". I made an adhoc version of the app to test the high score system, but every time I restart my ipod it resets the high score. Is there some trick to using the Save/Load attribute behavior that I'm missing? I've been messing around with it for awhile and can't get it to work.

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi @T8TRG8TR

    Try this: in your actor that checks the score, put

    When Score > High Score
    Change attribute High Score to Score
    Save attribute High Score --- with key "HS"

    Hope that sorts it for you. :-)

    ----------------------------------------------
    http://davidgriffinapps.co.uk/


    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • chaleychaley Member, PRO Posts: 226
    I was actually having an issue with my attribute load/saves until recently. I sent my file to the GS folks & they set me straight. Basically, I was typing my "keys" in the expression editor instead of in the box provided next to the word "key." Once I re-typed my keys in that box... my attributes loaded just fine.
Sign In or Register to comment.