Advanced touch controls help!
As of now I'm trying to create touch controls for my game, that are supposed to work like Hectic Spaces ( https://itunes.apple.com/DK/app/id841199768 ). Heres a basic example:
Whenever I touch the screen, theres a difference of say 100 pixels, with your finger at 100 X and the player at 200 X. When you then move your finger to 150 then the players X goes to 250. If I then release my finger and put it somewhere else with a difference of say 50. My ship is at X 250 and my finger at X 300. I then slowly move my finger from 300 to 250 X and the player moves with it from 250 to 200 X.
If what I just said made NO sense at all, I would recommend trying out Hectic Space to understand what I mean. As of I now I have no idea of how to do it, my best guess so far has been (However not working): Constrain self.position.X to game.Touches.Touch 1.X - ( game.Touches.Touch 1.X - self.Position.X). If anyone could get me a solution or alternative way of doing touch controls I would be appreciate it a ton!
Thanks for read - Silver