Saving your score

cnmeyer1980cnmeyer1980 Member, PRO Posts: 211
edited November -1 in Working with GS (Mac)
Hi guys,

I've nearly finished my christmas game. The game adds up your score and tells you how well you've done at the end.

However, I'm wondering if the following is possible, and if so..... how do you do it?

The score seems to get wiped from the game when you shut it down (completely shutting the game down). Is there a way of saving it, so when you open the game again, you can see the ultimate top score, that you can, if you wish, reset?

I know how to do resets and also how to track a score, but I dont know how to keep them once the game has been shut down.

If anyone can advise, that would be amazing.

Many thanks in advance for your help.

Cheers,

Chris

Comments

  • mikbiomikbio Member Posts: 54
    You can use the save atribute behavior. Just make an actor use save atribute and chose as atribute game.yourscore then once you've selected the atribute choose a keyword.
    Once you've done this create an actor and give that actor the behavior load atribute, give this behavior the keyword you've selected previously in the save atribute and the work is done.

    Hope this can help.
Sign In or Register to comment.