Type Number Event touch Revision Current Public Release (2018.3326) Keywords touch, x
The x position in screen coordinates of the touch.
local circle = display.newCircle( 50, 50, 100 ) circle:setFillColor( 0, 1, 0 ) local function moveCircle( event ) circle.x = event.x circle.y = event.y end Runtime:addEventListener( "touch" , moveCircle ) |