High score isn't working

Okay so I have a score integer that keeps track of the score as I play, then I have a final score that shows what I got on that round. what I am wanting to do now is to create a high score text that is displayed on the start screen and disappears when the game begins. I have the text working, it shows and and doesnt show when it is supposed to, however the high score integer stays at 0. This is the rules I have

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

When game.playing is false
Display text "High score: ".. game.highscore

The text rule is working, but the integer stays 0 for high score and won't display the highest score achieved. How can I make this work? Thanks :)

Comments

Sign In or Register to comment.