know whether you're moving left or right
FragFather wrote:There isn't a condition, but there is an easy way to do it. All you need is a variable to store the position of the object when it was not being dragged and compare it against the X value of the object while it is being dragged.
LittleStain wrote:add a variable oldx
if x>oldx - drag is moving right
if x<oldx - drag is moving left
set oldx = x