I have been following this useful tutorial on implementing swipes to make an object jump to fixed positions, but have a question on a few things.
For my game I would like the ability to actually make use of where the player swipes. So for example, that tutorial is perfect for going left and right, however if I swipe up or down, it still registers it as a sidewards move; which is because its only checking if a any swipe has occurred anywhere.
How could I make sure a up and down swipe results in moving up or down where there is an available space, and a left or right swipe results in moving as its namesake suggests.
I hope that made sense.
cheers
Dip