Construct 2 - One trick Everyday #3 - Detect swipe/control direction

  • 4 favourites


2,628 visits, 4,167 views



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 Everyone,

In this video I will show how to make player move in the direction of swipe. Player can swipe left, right or Jump. Code is just 3-4 event lines.

Check the video here and if you find it difficult then download CAPX from here


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

    One note is that in C3 I found it uses negative angles, so the angle check becomes:

    Up: -110 to -70

    Right: -20 to 20

    Down: 70 to 110

    Left: 160 to 200 (and for some reason, it could be negative sometimes, so I add an OR block and: -200 to -160)

    Thanks again!

  • Thanks! You helped