Hey guys so I’ve been using this tutorial for my score.
https://docs.coronalabs.com/tutorial/games/keepScores/index.html
All works well in the actual game, when I use score.add( value ) it adds and when I use score.set( value ) that works as well.
The problem I’m having is the fact that when I use this in the gameover.lua,
local scoreText = score.init( { fontSize = 40, x = 130, y = 130, maxDigits = 7, leadingZeros = false })
to display the score as I used it in my game.lua, the score changes during the game, but it will turn to 0 in the gameover.lua and it will not fade in with rest of the scene despite being under show scene.
And if I try to use this to display the score,
local score = display.newText( sceneGroup, "SCORE: " ..score )
I’ll receive the error attempt to concatenate upvalue ‘score’ (a table value).