How can i make the velocity of my ship go towards wherever the user touches, similar to transition.to but different at the same time, i tried this however it doesn’t work:
local ship = display.newImage("ship")
local function changeV(event)
if (event.phase == "began") or (event.phase == "moved") then
ship:setLinearVelocity(event.x, event.y)
end
end
please help!! [import]uid: 38977 topic_id: 21101 reply_id: 321101[/import]