How can i get my game over scene to say my final score? PLEASE HELP

Barking_AppsBarking_Apps Member Posts: 182
edited November -1 in Working with GS (Mac)
Yeh can someone help!? basically i need to know how to get your final score onto your game over scene and how you can save it as a player! PLEASE HELLLLLP...?

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    do a display text behavior and display the score attirubte
  • wouterwouter Member Posts: 174
    do you mean high score?
  • Barking_AppsBarking_Apps Member Posts: 182
    the video was useful but my score is time! so like the longer you last is your score! any help?
  • wouterwouter Member Posts: 174
    just make an attribute score, and make a timer: every 0.1 second (or what ever) game.score+1 ;)
  • Barking_AppsBarking_Apps Member Posts: 182
    yeh ive got the time score! but now i want the final score to be displayed onto the 'game over' scene! any more help!?? BTW you guys have been very helpful at the moment! cheers! :)
  • Barking_AppsBarking_Apps Member Posts: 182
    yeh ive got the time score! but now i want the final score to be displayed onto the 'game over' scene! any more help!?? BTW you guys have been very helpful at the moment! cheers! :)
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    JohnPapiomitis said:
    do a display text behavior and display the score attirubte

  • wouterwouter Member Posts: 174
    very simple, because you have a game attribute, you must make an new actor (highscore?) with display text
    (and text = game.highscore).

    wouter
  • Barking_AppsBarking_Apps Member Posts: 182
    ok i am slowly getting there! i have done a attribute for score and that works perfectly! now on the 'game over' scene i have done as you said but when i do a preview the final score says '0'!! any ideas?
  • wouterwouter Member Posts: 174
    yeah did you make the score a game or scene attribute? (it must be a game attribute)
    think that's the fault;)

    cheers.
  • JeffreyShimaneJeffreyShimane Member Posts: 372
    Make sure the score isn't getting reset until after the Game Over screen appears. For example, if the Game Over screen has a retry button, the score can be reset when the retry button is pressed.

    - Jeff
  • Barking_AppsBarking_Apps Member Posts: 182
    i think i know what the problem is! it says that the 'value' of the attribute is '0' which makes the final score '0' its the same if i type in '1'. what should 'the value of the attribute be?'
  • wouterwouter Member Posts: 174
    mmm don't know what you mean...
    is the attribute an integer?? (must be an integer) (i guess (maybe:P) it's now a boolean?)

    i'm going to bed..

    good luck;)
Sign In or Register to comment.