High Score help...!
bronze
Member Posts: 22
Hi All.
I have followed instructions from the forum about creating a highest score page when my game ends. I have two integers - game score - high score and a change/ save attribute etc...
It sort of works except. When I have a highest score of say, 10 and I score zero, it saves the highest score as per instructions. BUT when I score less than 10, lets say 5 for instance. The highest score changes to 5 as does the Game score, and doesn't save as 10....?!
I've checked everything over and over and all looks correct.....I'm starting to pull my hair out!
Please help me from going bald...
Regards,
Bronze
I have followed instructions from the forum about creating a highest score page when my game ends. I have two integers - game score - high score and a change/ save attribute etc...
It sort of works except. When I have a highest score of say, 10 and I score zero, it saves the highest score as per instructions. BUT when I score less than 10, lets say 5 for instance. The highest score changes to 5 as does the Game score, and doesn't save as 10....?!
I've checked everything over and over and all looks correct.....I'm starting to pull my hair out!
Please help me from going bald...
Regards,
Bronze
Comments
Thanks
All conditions valid
Rule when game.ends =1
game.score > game.bestscore
Change attribute game.bestscore to game.score
Save attribute game.bestscore to key bestscore
and then in my play button when i click to play again
load attribute key bestscore
hope this helps
apparently
Thanks for the advice. It still wouldn't work correctly but as you've just mentioned, I am NOT trying it on the device. Been trying it for days in the gamesalad viewer.
Thanks again for letting me know. I could of been here foe weeks!!
Bronze.