Question about "save attribute"
lowski
Member Posts: 25
I'm trying to make checkpoints for my game at the end of every level and i have a question about the save attribute feature. I have two save attributes that save both the x and y positions of my player controlled actor. When the actor overlaps with an area the player is prompted to save their progress and proceed to the next level by pressing the up button. In the save attribute section there is an input box for the attribute to be saved and then there is a "key" option. My question is about the "key" box. Can I leave it blank? If not, what am I supposed to put in there? These questions also apply to the load attribute feature as it also has a "key" option. Oh and I don't have the express version of GS so that means that I cannot test the save and load attributes right?
Comments
Rule:
If game.currentScore > game.highScore1
---Change game.highScore1 to game.currentScore
---Load Attribute: "High 1" to game.highScore2
---Load Attribute: "High 2" to game.highScore3
Otherwise:
---Rule:
---If game.currentScore > game.highScore2
------Change game.highScore2 to game.currentScore
------Load Attribute: "High 2" to game.highScore3
---Otherwise:
...etc
Think of saving/loading an attribute as using a safety deposit box. You have to manage both putting stuff in and taking it out, and both operations need a key*. Would you expect documents stored in a safety deposit box to instantly be back in your briefcase then next time you need them?
* And your SSN, DOB and Mother's maiden name... ;-)