if your dragging ur object... or u have to touch ur finger on screen... set.angle to direction Touch.x Touch.y thats it .... or set.angle to angle(player.x,player.y,touch.x,touch.y) or ... rotate towards angle = angle(player.x,player.y,touch.x,touch.y) ... . no crazy coding needed
the player.x player.y being the object your drag