Save and load using the Save Attribute function

LokitoesLokitoes Member, PRO Posts: 187

Hi there,

I'm trying to save an attribute (number of presses) without using a table. I only have to save the one number, so I was hoping the save attribute command might be simple. The number is a game level 'real' attribute which is set on a timer to self save every 5 minutes in case the thing crashes. It's going to be set up to display the number on the screen as well, but I need it to reload correctly when the game is turned off and in again, like a high score.

My question is, what do I put in the 'key' expression editor area of the 'save attribute' behaviour? What does key mean in this instance?

Cheers!

Comments

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    You can use anything you like. You'll need to use this key again when you load the data.

    So if you use a key of ScreenCount to save the data, you would load ScreenCount to retrieve the data.

Sign In or Register to comment.