I'm having a problem with my leaderboards, the problem is my array score are all sorted in ascending order and works fine but I can't save the text beside the score? The situation is game.lua --> gameOver(Score & Difficulty Text) --> leaderboards(Score). Calling the variable from a table doesn't work.
leaderboards.lua
for i = 1, 10 do
if (scoresTable[i]) then
local yPos = 150 + (i * 130)
local thisScore = display.newText(sceneGroup, scoresTable[i].. options.title,display.contentCenterX-30, yPos, font, 100)
thisScore.anchorX = 0
end
end
game.lua
options{
title = "Easy",
}
gameover.lua
options{
title = options.title,
}