Saving Attributes

Hi Folks,
Now this is a rookie question/rookie error thing which has me a mite lost (and embarrassed to be asking at this stage). How does GS saving and loading attributes work? Now I've been testing on device and I noticed my power-ups are not saving. Rather after each reboot they're reverting to their defaults.

Now I once had a problem were I was saving the attributes with a different key than I was loading them but here to make sure I didn't forget or use a key that I would get confused with I've been saving and loading any attributes using they attribute name as the key i.e:

save: game.freeze as game.freeze
load: from- game.freeze load- game.freeze

Is this wrong? If so, how am I supposed to save them? I suppose I could just save all these in tables which doesn't need loading but I'd like to find out anyway.

Comments

  • HopscotchHopscotch Member, PRO Posts: 2,782

    @fmakawa

    make sure that the key value is entered as text. Best open the expression editor and enter the key with quotes. i.e. "game.freeze"

  • fmakawafmakawa Member Posts: 567

    @Hopscotch so it wont save them if they are entered as game attributes? The attributes have to be placed inside quotation marks?

  • HopscotchHopscotch Member, PRO Posts: 2,782
    edited November 2016

    @fmakawa just the key value. The actual game attribute gets called up by lookup as usual, but make sure the key value is text. (unless your key value is actually stored in an attribute of course)

Sign In or Register to comment.