Hey,
So I’m developing a game using Corona SDK and the Director Class and I was wondering if it is possible to have the score display on the game over screen?
Inside the playGroup (group in game.lua file), I have a variable called score which updates over a period of time, displayed using text that calls the variable.
I was wondering if it is possible to show this score on the gameover.lua page, with a group called ‘endGroup’.
I am unsure how to achieve this, so any help would be appreciated.
Score code:
local score = 0
local txtScore = display.newText( " " .. score, 0, 0, native.systemFontBold, 16)
txtScore.x = 10
txtScore.text = score
Thanks. [import]uid: 88269 topic_id: 18249 reply_id: 318249[/import]
[import]uid: 52491 topic_id: 18249 reply_id: 69851[/import]