In this code, is it possible to determine which child object of the myGroup display group was tapped?
[lua]local circle1 = display.newCircle(100, 100, 30)
local circle2 = display.newCircle(200, 100, 30)
local myGroup = display.newGroup()
myGroup:insert(circle1)
myGroup:insert(circle2)
function myGroupTapped(event)
– Can I determine which display group child object was tapped here?
transition.to(myGroup, {x = myGroup.x + 100, y = myGroup.y + 100})
end
myGroup:addEventListener(“tap”, myGroupTapped)[/lua]