Currently, to implement the camera function, I used the following function.
local myTouchListener = function( event )
if(event.phase == "began")then
lastTouchLocation = { x= event.x, y = event.y}
end
if(event.phase == "ended")then
lastTouchLocation = { x= event.x, y = event.y}
end
if(event.phase == "moved")then
local delta = { x = event.x - lastTouchLocation.x,
y = event.y - lastTouchLocation.y};
lastTouchLocation = { x= event.x, y = event.y}
localGroup.x = localGroup.x + delta.x
localGroup.y = localGroup.y + delta.y
end
end
After the group is translated, how do I get the position of the group when I touch the screen instead of the screen coordinate? [import]uid: 70056 topic_id: 19657 reply_id: 319657[/import]