I want a tap event to trigger an animation, but if you tap it again while its moving, to not do anything, until its done.
[lua]local function move(event)
transition.to( thing, { time = 1000, x = 206, y = thing.y, onComplete = moveCompensation } )
end
end
thing:addEventListener(“tap”, move)[/lua]
This is what I have so far. Obviously putting thing:removeEventListener before transition.to and thing:addEventListener after it, wouldnt work cause I am calling a function from within itself.
Any ideas? [import]uid: 106739 topic_id: 18365 reply_id: 318365[/import]