I'm trying to make a game for mobile devices.
I've spent hours trying to make my camera scroll left and right along my scene by using touch input.
The goal is to have it so that when you are on a mobile and you swipe your finger from the right of the screen to the left, the camera will move to the right in the scene relative to the length of the swipe, as well as having a smooth finish.
I've managed to get the basic movement down, at the moment I can pan from left to right but the coding is messy and complicated, not to mention there is no smooth finish. The panning motion stops immediately after you release your finger.
Any help would be greatly appreciated