Save and load using the Save Attribute function
Lokitoes
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
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.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page