Change scene after the last scene to menu or highscore scene
bora
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?
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
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
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!!!
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.