Announcement

Collapse
No announcement yet.

Swipe Input of Multiple Directions

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Swipe Input of Multiple Directions

    I'm working on having touch controls for my game and was interested in having the character move via swiping. Each swipe would move the character a set distance, and the character can move in the four cardinal directions, or diagonally. Is there a simple way to detect these swiping motions with UE4.8?

    #2
    On Touch Input

    Press -> Save Location
    Release -> Check distance between saved location and current location -> Decide if the distance is greater than ur swipe-threshold

    Comment


      #3
      I made a plugin that does what @Rouby describes and surfaces the swipes as events that you can respond to in blueprint, similar to how touches work:

      https://github.com/getsetgames/Swipe
      Derek van Vliet
      Co-Founder
      Get Set Games

      Comment

      Working...
      X