Change scene after the last scene to menu or highscore scene

borabora Member, PRO Posts: 45
I need help.

In the last scene i want to change the scene to menu if the player do not have a new highscore or to an "New Highscore" scene where do i display the new highscore if the player have a new highscore.

How do i do that?

Comments

  • ElfizmElfizm Member Posts: 489
    Hello

    So what I would do is to have a rule that says if game.score is larger than game.highscore then change scene to high score scene.
    Otherwise
    Change scene to main menu

    Hope that helps

    Elfizm
  • borabora Member, PRO Posts: 45
    Hello Elfizm,

    i do the rule - but it do not works. So i look to the rules i have in the scene. I have a rule that set the gamescore to the highscore if the gamescore is greater than the highscore.
    so are game and highscore the same. than i made a rule
    if game.score is equal to game.highscore (thats in this moment the new highscore) change to highscore scene - otherwise - change to main menu!

    That works - thank you!!!
  • famekraftsfamekrafts Member, BASIC Posts: 834
    you have to make two separate attributes for score and highscore. You have to set

    if high score is < and = score

    then set score = highscore

    save highscore ( so that score remains saved for next time)

    and go to next scene.

    only = may not work as that needs to be exactly same.
  • ElfizmElfizm Member Posts: 489
    Glad to hear it :)
  • borabora Member, PRO Posts: 45
    Thank You Wickedsunny!
Sign In or Register to comment.