Please help with score
Seva2000
Member Posts: 30
So I have a score come up at the end, but I also have reset a game. So how do I save a score, so it's like a record?
Comments
create a new attribute called Highscore as a integer. Then create a rule in a actor or create a new actor. When attribute game.Highscore is > then game.Score Change attribute game.Highscore to game.Score. Save attribute game.Highscore Key:Highscore
Then in the reset scene actor create a rule When actor receives event touch is pressed Change attribute game.Score to 0
In addition to what @CrazyApe wrote, you'll need to use a Load Attribute behavior in one of your actors on the first scene that loads in order to load the value of the key back into the game.Highscore attribute.
There are good videos on this topic. Google gamesalad high score and click on the Videos tab.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User