Swipe Grid Move

4

Attached Files

The following files have been attached to this tutorial:

.capx

swipegridmove.capx

Download now 241.13 KB

Stats

2,324 visits, 3,311 views

Translations

This tutorial hasn't been translated.

Tools

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

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!