hi,
i do little function to move my character in function of the tap.
the problem is how to assign the event.x or event.y in the function “myTapListener” to the “animationPersonnage” ? it seems that the event.x value is egal to nil
animationPersonnage.x=148 animationPersonnage.y=152 local function myTapListener(event) transition.from( animationPersonnage, { tag="animationPersonnagedeplacement", time=1000, x=event.x, y=event.y } ) local nouvellecoordonneex = event.x local nouvellecoordonneey = event.y print("object tapped = "..tostring(event.target)) return true end water1:addEventListener("tap", myTapListener ) animationPersonnage.x=event.x animationPersonnage.y=event.y