I censored 'cause the original have some bad words
I can’t upload.
I’ll put the code here and edit to use “circles” instead the jpg files.
"""“MAIN.LUA”"""
local linha1 = display.newText(“Teste Dom”, display.contentCenterX, 120, native.systemFont, 150)
local buttonNext = display.newCircle(0, 0, 70)
buttonNext:setFillColor(1, 0, 0)
buttonNext.x = display.contentCenterX
buttonNext.y = display.contentHeight -85
"""“DOM001.LUA”"""
local txt = display.newText(“bla bla bla bla”,
display.contentCenterX, 300, native.systemFont, 120)
local circle1 = display.newCircle(0, 0, 30)
circle1:setFillColor(1, 0, 0)
circle1.x = display.contentCenterX -120
circle1.y = display.contentHeight -50
local circle2 = display.newCircle(0, 0, 30)
circle2:setFillColor(0, 1, 0)
circle2.x = display.contentCenterX -40
circle2.y = display.contentHeight -50
local circle3 = display.newCircle(0, 0, 30)
circle3:setFillColor(0, 0, 1)
circle3.x = display.contentCenterX +40
circle3.y = display.contentHeight -50
local circle4 = display.newCircle(0, 0, 30)
circle4:setFillColor(0, 200/255, 200/255)
circle4.x = display.contentCenterX +120
circle4.y = display.contentHeight -50
local function click1()
display.remove(txt2)
display.remove(txt3)
display.remove(txt4)
txt1 = display.newText(“bla bla 1”, display.contentCenterX, 500, native.systemFont, 40)
end
circle1:addEventListener(“tap”, click1)
local function click2()
display.remove(txt1)
display.remove(txt3)
display.remove(txt4)
txt2 = display.newText(“bla bla 2”, display.contentCenterX, 500, native.systemFont, 40)
end
circle2:addEventListener(“tap”, click2)
local function click3()
display.remove(txt1)
display.remove(txt2)
display.remove(txt4)
txt3 = display.newText(“bla bla 3”, display.contentCenterX, 500, native.systemFont, 40)
end
circle3:addEventListener(“tap”, click3)
local function click4()
display.remove(txt1)
display.remove(txt3)
display.remove(txt2)
txt4 = display.newText(“bla bla 4”, display.contentCenterX, 500, native.systemFont, 40)
end
circle4:addEventListener(“tap”, click4)
PS: I don’t know what happend, I have to re edit the size and position of everything, the design looks good yesterday