x1 = 1
local msg = display.newGroup()
msg:setReferencePoint( display.CenterReferencePoint )
function dispIt(x)
myText = display.newText("",0 ,0, native.systemFont, 30 )
msg:insert( myText, true )
myText.x = 200; myText.y = 500;
myText:addEventListener(“tap”, tick)
if x1 == 1 then
myText.text = “NEXT PLAYER: BLUE”
else
myText.text = "NEXT PLAYER: RED "
end
end
function tick()
if x1 == 1 then x1 = 2 else x1 = 1 end
dispIt(x1)
end
dispIt(x1)
If you try the above code you’ll see that it prints one one top of the other, Am i missing something in the Corona requirement. (click the writing to see the effect)