Hi everybody.
Why can’t I tap on the circle while it’s in transition and print the coordinates?
local function onObjectTap( self, event )
local TapX = event.x
local TapY = event.y
print (“circle tapped: (”… TapX … “,” … TapY … “)”)
end
local myCircle = display.newCircle (300,300,200)
myCircle.tap = onObjectTap
myCircle:addEventListener( “tap”, myCircle )
transition.to( myCircle, { time=2000, x=500 ,y=1000, delta=true } )
Can it not listen while moving?
It’s fine once it finishes moving.
I’m I doing it wrong? Should I be using something else to animate/move the circle?
Thanks
Ken