save the best score
Hi,
I'm working on a system with the stars. I have a level that the player must finish in the minimum time possible. At the start of the game the record is 0. When the player finish the level there is a rule:
if "game.finishLevelScore" is less than "game.bestScore" --> change "game.bestScore" to "game.finishLevelScore"
but the best.score is 0!!! and It never work! I know what is the problem but I don't have any idea how to fix it.
thanks for help
I'm working on a system with the stars. I have a level that the player must finish in the minimum time possible. At the start of the game the record is 0. When the player finish the level there is a rule:
if "game.finishLevelScore" is less than "game.bestScore" --> change "game.bestScore" to "game.finishLevelScore"
but the best.score is 0!!! and It never work! I know what is the problem but I don't have any idea how to fix it.
thanks for help
Best Answers
-
Manto Posts: 796
Shouldn't it be:
if "game.finishLevelScore" is greater than "game.bestScore" --> change "game.bestScore" to "game.finishLevelScore" -
tatiang Posts: 11,949
Ahh yeh. What if you set the game.bestScore to enough large number?
There's your answer.New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers