Hi
I am trying to cancel a transition when the touch phase is ended however I am not getting the result that I am expecting. The transition keeps going until it is finished.
Here is my code:
[lua] function touchListener( event )
if event.phase == “began” then
trans = transition.to( ball, { time=1000, alpha=1, x= ball.x, y= ball.y - 200 } )
elseif event.phase == “moved” then
print(“moved”)
elseif event.phase == “ended” then
transition.cancel(trans)
end
end[/lua] [import]uid: 167063 topic_id: 29475 reply_id: 329475[/import]