here you go
for i=1,5 do answerLetters[i] = display.newText(sceneGroup, "", 0, 0, native.systemFontBold, 72) answerLetters[i].x = i \* 155 - 65 answerLetters[i].y = lifebarBoxes.y - 30 answerLetters[i]:setFillColor(1) playerLetters[i] = widget.newButton({ width = 178, height = 158, defaultFile = "images/game/blank-box.png", overFile = "images/game/blank-box.png", font = native.systemFontBold, fontSize = 68, labelColor = { default={ 1, 1, 1 }, over={ 1, 1, 1, 0.5 } }, onEvent = onLetterTouch }) playerLetters[i].id = i playerLetters[i].assignment = 0 sceneGroup:insert(playerLetters[i]) end
local btn\_play = widget.newButton({ -- add the play button width = 552, height = 196, defaultFile = "images/menu/play\_btn.png", overFile = "images/menu/play\_btn\_pressed.png", onEvent = onMenuTouch }) btn\_play.x = \_S.CX btn\_play.y = txt\_bestScore.y + 275 sceneGroup:insert(btn\_play)