highscore stuck when played for a few times..
Hi all!
I'm back again with some highscore questions.
After going to a lot of problems i finally changed my mind and did my highscore system again.
Now, you start with a score of 100 points, each time you touch to move you lose -1
If you spend your 100points you die. when you reach the top in less then 100 moves, lets say 55
Than you highscore is 45 (100 - 55 = 45).
Now, at the moment this works perfectly as it should be.
But when you play the game a couple of times the highscore changes to 100 all of a sudden.
That is impossible in the game. But how come this happens?
Anyone any ideas?
when you die if game score is 0 my rule is:
game.score = 0.0 change scene to game over.
rule for -1 point:
if touch is pressed, change attribute game.score to game.score-1
rule for keeping score:
attribute game.score > game.highscore
change attribute game.highscore to game.score
No otherwise over here
Where my game tells the score to be 100 to start in a reset scene
change attribute game.score to 100
New game!: [Snake Rage]https://itunes.apple.com/us/app/snake-rage/id1463859909