Touch movement

Hello guys,
sorry for my English.
I am developing my first application with gamesalad (puzzle game).
I need to move an object using the touch-movement, I did but I wish that the movement is only in horizontal and vertical non-diagonal. How can I do?.
thanks
sorry for my English.
I am developing my first application with gamesalad (puzzle game).
I need to move an object using the touch-movement, I did but I wish that the movement is only in horizontal and vertical non-diagonal. How can I do?.
thanks