How to display the current score and high score at the same time and then save the high score

Ceoready_45Ceoready_45 Member, PRO Posts: 18

Kind of like the scoring system in the game " Don't you hit the spike ". Thank you so much in advance. I know how to save the high score and load it but I can't get it to work the way I want.

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    Load Attribute key highscore game.highScore

    Display Text game.score.." "..game.highScore

    When game.score > game.highScore
         Save Attribute game.highScore key highScore
         Change Attribute game.highScore to game.score
         

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Ceoready_45Ceoready_45 Member, PRO Posts: 18

    @tatiang thank you so much. Got it!

Sign In or Register to comment.