hi,
i have put a addEventListener on my background and i have two value
xbegin and xmiddle and i want to show these value on my screen.
with this code the value appears but the last value appears on the previous.
how do you do to refresh the value ?
txtXY = display.newText( "(\_\_\_,\_\_\_)", 45, 465, native.systemFontBold, 12 ) txtXY:setFillColor(1,0,0) local function showEvent( event ) txtXY.text = "(" .. xbegin .. "," .. xmiddle .. ")" end showEvent()