Swipe Grid Move

4

Attached Files

The following files have been attached to this tutorial:

.capx

swipegridmove.capx

Download now 241.13 KB

Stats

3,142 visits, 4,425 views

Tools

Translations

This tutorial hasn't been translated.

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.

Published on 19 Sep, 2017. Last updated 19 Feb, 2019

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!