
I have now an object and a line to move the object on, and I added a button when I click on it the object move on the line,,I want to remove the button and use swiping, when i swipe up the object move on line1 , when I swipe down the object move on line2, when I swipe left the object move on line3, when I swipe right the object move on line4, how to make this?
Please help

Note: This for mobile devices. (Android)
Thanks