Swipe Grid Move

Attached Files

The following files have been attached to this tutorial:

.capx

swipegridmove.capx

Download now 241.13 KB

Stats

1,199 visits, 1,648 views

Translations

This tutorial hasn't been translated.

Tools

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 :)

.CAPX

swipegridmove.capx

Download now 241.13 KB
  • 2 Comments

  • Order by
Want to leave a comment? Login or Register an account!