GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

creating a high score

suntzumobilesuntzumobile Posts: 34Member
edited November -1 in Working with GS (Mac)
Hi Salad creators! Im working on a simple touch game and need to create a high score and one you can save can anyone out there help? I would appreciate it, its been driving me crazy

Comments

  • butterbeanbutterbean Posts: 4,315Member, PRO
    This has been covered but:

    Create attribute game.score and keep track of score via that global attribute

    Then create another global attribute game.highscore and place this rule:

    Display game.highscore

    Rule: when attribute game.score is > or = to game.high score
    Constrain attribute: game.highscore to game.score

    Hope this helps!
This discussion has been closed.