** Detect Swipe Direction ** Beefy_Clyro

beefy_clyrobeefy_clyro Member Posts: 5,394
edited November -1 in Working with GS (Mac)
Hi Guys.

Im offering a nice little template here, its used to detect which way the player is swiping. Everything is set up for left, right, up and down and after the swipe has happened, it resets back to know that no swipe is still in place. Simple to merge into your own projects and use how you wish.



I will set this at $5, please make payment via paypal to - letters_from_u (at) hotmail (dot) com and state that it is for this template.

Cheers

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    Looks neat :)

    Can it detect the angle of swipe, say if i swipe at 60º?

    Darren.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Thanks, no this is just used to detect whether or not the person is swiping left, right, up or down, i didn't need to know the angle. Its something i may look into adding though
  • DreamLabDreamLab Member Posts: 2,127
    Not to barge on your template or anything, but isn't this the same thing?

  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Ah ha, correct, this is more or less that but done a bit differently. I wasn't aware of that so i will withdraw this template, just done it for my game and thought others may find it useful too.
Sign In or Register to comment.