porky wrote:Thanks BenGIJOE. What if the swipe is a curve move? and I want the object move to the arrow direction in the picture.
you can set a maximum offset for the x an y an so set max values for example:
Imagine a D pad, allow the finger to have a maximum miss swipe lets say that the player can follow. thus if the end point of the swipe is more then the allowed offset do either nothing or the other direction.