Hi guys, please check my swipe control and move in grid :)
I used a tilemap for the path, all cell which has empty tiles (tile = -1), the MC can not enter.
The mechanic is checking the end of touching and the angle to get the swipe direction
And execute each direction in a function SwipeNSwipe and move MC to that position on tile map :
Or move to the end of tile map
Hope you find this useful. Thanks :)