Reseting Score!!

charliehgreencharliehgreen ArizonaMember Posts: 233
Hey could someone please help me figure out how to reset the game.score?

I can't get it to reset when I make the scene reset on the gameover screen :(

Comments

  • SnapFireStudiosSnapFireStudios Member Posts: 1,603
    Could you please give us a bit more information about what you're trying to do and how you're doing it?
    - Thomas
  • charliehgreencharliehgreen ArizonaMember Posts: 233
    Sure,

    Ok I have a score which is in the right hand corner and it's an added Attribute that's an interger nameg game.score. and after every enemy kill it'll add +1 to the score.

    But the problem is, once the level has been failed and the player see's the Gameover screen and it reset's, everything on the level will reset except the score =(

    so once you restart, the score will still show wherever you left off at.
  • Zenith_GameworksZenith_Gameworks Member Posts: 310
    Hmm, maybe try saying if game over is true then set game.score to 0
  • Zenith_GameworksZenith_Gameworks Member Posts: 310
    And then have a high score that is saved...
  • charliehgreencharliehgreen ArizonaMember Posts: 233
    Wheeew thanks @zenith_digital Oh gosh! it was so simple, how come I never thought to try it that way....

    Thanks!!!!
  • Zenith_GameworksZenith_Gameworks Member Posts: 310
    Wheeew thanks @zenith_digital Oh gosh! it was so simple, how come I never thought to try it that way....

    Thanks!!!!
    Anytime ;)

    Zenith_Digital
Sign In or Register to comment.