Essentially I'm building an app with "tap" controls to control a character in a side scrolling view, the user taps where they want to move the character then the character should move to that x location. I'm just thinking about the best way of implementing this, I thought I could apply a linear velocity to the character and then repeatedly check to see if it has reached its target (lets say every 0.05 seconds) in which case its velocity can be set to 0 but that doesn't seem particularly elegant. Any suggestions?
Thanks in advance :)