Help with scores
AppChogie
Member Posts: 503
Hi guys, I am trying to add scores to my game I can't remember how to do it,
After each game I have a scene that gices you current score and that works then the game goes to the title screen where I have a high score button but I can't make the score give the correct value
Ive got 2 attributes one for score and highscore both set to 0
how do i get it to save the score after a game and call it back for the highscore if the new score is higher?
I had it working before but the new update is giving me all kinds of gremlins
After each game I have a scene that gices you current score and that works then the game goes to the title screen where I have a high score button but I can't make the score give the correct value
Ive got 2 attributes one for score and highscore both set to 0
how do i get it to save the score after a game and call it back for the highscore if the new score is higher?
I had it working before but the new update is giving me all kinds of gremlins
Comments
1) change high score to current score
2) save high score
hope that helps
Also, could you send me the xcode project that you were working on with poppi. I think I sent you an email.
Hi mate I have sent all the email I'll check again and resend vie been. Having trouble with email lately
I have 2 attributes, 1st is current score, 2nd is high score
after the game i have a display text with game.current score and that works then i have put save attribute current score with the key of current score.
Then in my high score page i have load attribute and display text game.current score
You miss me already i see! :P
place a "load attribute" in the highscore scene with the same "key" that you gave to the save highscore
i should hve internet access tomorrow. send me a mail
----when game.currentScore is > game.highScore change game.highScore to game.currentScore
----save attribute game.highScore to HighScore(This is a key)
Have a scene controller actor on the page that does this;
--load HighScore
This should work.
Still no xcode project :-(