CONTINUOUS High-Score Updating

jadjad Member Posts: 135
edited January 2012 in Working with GS (Mac)
I have a game i'm working on in which the game-play continues and the score continues to fluctuate for an indeterminate amount of time. Beneath the actor showing the score, how can I have an actor that shows the CURRENT High-Score? and have the current high score change during gameplay.

Comments

  • POMPOM Member Posts: 2,599
    edited January 2012
    First have an actor , and give it a rule to display text of your high score attribute .
    then in your actor have a rule :
    When "game.current session score" GRATER then "game.high-score"
    Change "game.high-score" TO "game.current session score"
    Save "game.high-score"

    This way if in the current session of the game the player managed to get a higher score , it will be updated in run time
    :D
    Cheers
    Roy.
Sign In or Register to comment.