How to make High scores?

CLV25CLV25 Member Posts: 36
edited November -1 in Working with GS (Mac)
Hi, I am making a game and need high scores, however I only know how to make temporary high scores. How do I make high scores so that when i close the app and them re open it and still have the old scores?

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    Hello

    Create an integer attribute called high score

    RULE: if game.score > game. high score,
    Change attribute game.highscore to game.score :)
    Save attribute - game.highscore

    Also at the beginning, remember to load the high score

    Matt

    _________________________________________________
    Full Game Creation Service
    1 On 1 Project Help
    1 on 1 GameSalad Tutoring
  • osucowboy18osucowboy18 Member Posts: 1,307
    Use the Save and Load Attribute Behavior.

    - Alex
    _________________________________________________________________________________

    Target Practice Template
    Custom Soundtracks and Sound Effects For Sale
    Vertical/Horizontal Level Select Template
    Mac Mini For SALE!!!
  • CLV25CLV25 Member Posts: 36
    Aahhhhh thanks :)
  • allornothingallornothing Member, PRO Posts: 126
    What would be the best practice for saving different high scores (or 'stars' earned for example) for many stages? I can imagine a simple version being the above solution but having one for each stage, but that sounds like it would make my game attributes very messy!
  • DrGlickertDrGlickert Member Posts: 1,135
    It does add a lot to game attributes. I'm working on a game that will end up having over 200 game attributes.

    I've heard of some members having games that have well over 500.

    Just depends on what you need and how you want your game set up, I guess.

    Organization is critical when making a game with so many attributes.
  • sebitttassebitttas Member Posts: 2
    I need help on setting up a high score chart meaning I want to display that when player has high score is display first then if they play second time score is either higher is ranked first or lower is ranked second example like this

    High Score 1.200 High Score1.300
    High Score 2.100 High Score2.200
  • JeffreyShimaneJeffreyShimane Member Posts: 372
    Set it up as NextGen said but have two High Score game attributes (highscore1 and highscore2).

    RULE: if game.score > game.highscore1,
    Change attribute game.highscore2 to game.highscore1
    Change attribute game.highscore1 to game.score
    Save attribute - game.highscore1
    Save attribute - game.highscore2

    OTHERWISE: if game.score > game.highscore2,
    Change attribute game.highscore2 to game.score
    Save attribute - game.highscore2

    - Jeff
Sign In or Register to comment.