Hi,
I am new here. I am facing problem with on tap - “text transition”.
On taping the button, i want to remove the previous number(n) which in on display & the new number (n+1) is displayed. currently I am just been able to overwrite on the previous number.
Here is my code.
local function handleButtonEvent(event)
local phase = event.phase
if “ended” == phase then
print (“You have pressed and released the button”)
i = i + 1
print (i)
t3 = display.newText(i, 200, 200, verdana, 28)
t3:setFillColor(220,51,273)
transition.to(t3, {alpha=1, time = 1000})
end
Please help me out.
Thanks in advance!