I have a graphic background grid (10x14, each square is 32x32 pixels) and a falling pieace (like tetris).
Right now, I'm controlling the piece with the keyboard. So when the user hits right key, the piece moves 32px to the right, when it hits left key, 32px to the left. I want to have the same thing, but with mouse/touch. When someone touchs the piece,can move 32px to the left, to the right or down. But if I put draggable behavior to the sprite, the user can take wherever he wants.