http://docs.coronalabs.com/tutorial/games/keepScores/index.html#saving-and-loading-the-score
Hello guys, I managed to get the score system going and would like to know how to add a highscore system. I was thinking about making the score save if it is greater than the saved score and using the display saved score to show the highscore but I don’t know how to use the commands. I have googled other highscore systems but they are way different.
I am making a gameover on collision game.
This is my mini score system going.
local score = require('classes.score') local scoreText = score.init( { fontSize = 20, font = "", x = display.contentCenterX, y = 30, maxDigits = 4, leadingZeros = false }) local updateScore = function() score.add( 1 ) end scoreTimer = timer.performWithDelay( 10, updateScore, -1)