global variable"cantouch" =0
->on touch set global variable "endx" to touch.x, "endy" to touch.y
->set global variable "canmove" to 1
->set global variable "cantouch" to 1
->wait distance(player.x,player.y, touch.x,touch.y)*your speed
->set global variable "cantouch" to 0
->set global variable "canmove" to 0
global variable "canmove" =1
->player set position to lerp(self.x,endx,your speed*dt) lerp(self.y,endy,your speed*dt)
Or something like that....