i am using this tut to Swiping an object to fixed points .
https://coronalabs.com/blog/2014/09/16/tutorial-swiping-an-object-to-fixed-points/
i am not using the transition.to() due to physics and instead i am using setLinearVelocity
the object size is 30x30
when i try to swipe that object lots of time it didn’t move . no response and i have to try so many times touching the object and try to swipe it and make the object move . i tried it in more than one phone/tablet Android
here is my code so far
local LEFT = 50 local CENTER = display.contentCenterX local RIGHT = display.contentWidth - 50 local UpMove = 50 local CENTERY = display.contentCenterY local DownMove = display.contentHeight - 50 local function handleSwipeX( event ) if event.phase == "moved" then local dX = event.x - event.xStart if dX \> 15 then -- swipe right local spot = RIGHT if event.target.x == LEFT then spot = CENTER end event.target:setLinearVelocity(400,0) elseif dX \< -15 then -- swipe left local spot = LEFT if event.target.x == RIGHT then spot = CENTER end event.target:setLinearVelocity(-400,0) end end return true end

