How do i make my score reset when you retry the scene?

Barking_AppsBarking_Apps Member Posts: 182
edited November -1 in Working with GS (Mac)
Every time i play my game i get a score, then when its game over i reset the scene to play again but the score is the same as the one i had! any help?

Comments

  • 0belisk0belisk PRO Posts: 189
    When its game over, on the button the user pushes to play again, add a rule that resets the game, rather than resetting the scene. So it will return to the first scene, which should rather be your Main Menu scene if you have one, or otherwise the Play Game scene.

    If this isnt how you wish to approach it, then on the button to play again on your game over scene, add this:

    "Change Attribute"

    Game.Score to 0

    "Change Scene"

    Go To Play Game Scene (Or Main Menu)

    Or "Reset Scene" if your game over screen is still on your Play Game scene.
  • Barking_AppsBarking_Apps Member Posts: 182
    yep got it working now cheers! ;)
Sign In or Register to comment.