Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Touch and Swipe Behavior

Touch and Swipe Behavior

Scheduled Pinned Locked Moved Help and Support
10 Posts 2 Posters 1.8k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Keith DavisZ Offline
    Keith DavisZ Offline
    Keith Davis
    wrote on last edited by
    #1

    I have a started touching behavior that makes my player jump, all is good. I added a swiping behavior to make the player attack. The start touching behavior always fires first… so when I swipe the jump logic fires before the attack logic. Cannot figure out how to differentiate between touches and swipes. Any pointers would be appreciated!

    Keith DavisZ 1 Reply Last reply
    0
    • Keith DavisZ Keith Davis

      I have a started touching behavior that makes my player jump, all is good. I added a swiping behavior to make the player attack. The start touching behavior always fires first… so when I swipe the jump logic fires before the attack logic. Cannot figure out how to differentiate between touches and swipes. Any pointers would be appreciated!

      Keith DavisZ Offline
      Keith DavisZ Offline
      Keith Davis
      wrote on last edited by
      #2

      I think I figured out, used a wait behavior after the touch and checking a couple of player action state variables.

      Keith DavisZ 1 Reply Last reply
      0
      • Keith DavisZ Keith Davis

        I think I figured out, used a wait behavior after the touch and checking a couple of player action state variables.

        Keith DavisZ Offline
        Keith DavisZ Offline
        Keith Davis
        wrote on last edited by
        #3

        Not a solution, with a wait it still randomly triggers the touch before the swipe. HELP! This has to be easy…

        1 Reply Last reply
        0
        • MurtazaM Offline
          MurtazaM Offline
          Murtaza
          Admin
          wrote on last edited by
          #4

          In general using swipe and touch will conflict because the initial gesture is the same.

          Try using stopped touched instead. Usually you want to initiate an action when you let go of a button any ways.

          Keith DavisZ 2 Replies Last reply
          0
          • MurtazaM Murtaza

            In general using swipe and touch will conflict because the initial gesture is the same.

            Try using stopped touched instead. Usually you want to initiate an action when you let go of a button any ways.

            Keith DavisZ Offline
            Keith DavisZ Offline
            Keith Davis
            wrote on last edited by
            #5

            @Murtaza I will try that; however, from my days as an in-house tester at Nintendo, button down or touch begin initiates an action. With application interfaces button up or touch end seems to be the case… ah the nuances of UI/UX .

            1 Reply Last reply
            0
            • MurtazaM Murtaza

              In general using swipe and touch will conflict because the initial gesture is the same.

              Try using stopped touched instead. Usually you want to initiate an action when you let go of a button any ways.

              Keith DavisZ Offline
              Keith DavisZ Offline
              Keith Davis
              wrote on last edited by
              #6

              @Murtaza Didn’t work… The end of a swipe triggers stopped touching.

              MurtazaM 1 Reply Last reply
              0
              • Keith DavisZ Keith Davis

                @Murtaza Didn’t work… The end of a swipe triggers stopped touching.

                MurtazaM Offline
                MurtazaM Offline
                Murtaza
                Admin
                wrote on last edited by
                #7

                @krdavis
                You could try disabling the behaviour, then when you're done touching enable it.

                Keith DavisZ 1 Reply Last reply
                0
                • MurtazaM Murtaza

                  @krdavis
                  You could try disabling the behaviour, then when you're done touching enable it.

                  Keith DavisZ Offline
                  Keith DavisZ Offline
                  Keith Davis
                  wrote on last edited by
                  #8

                  @Murtaza still wonking behavior, thx… I’ll keep messing with it.

                  Keith DavisZ 1 Reply Last reply
                  0
                  • Keith DavisZ Keith Davis

                    @Murtaza still wonking behavior, thx… I’ll keep messing with it.

                    Keith DavisZ Offline
                    Keith DavisZ Offline
                    Keith Davis
                    wrote on last edited by
                    #9

                    @Murtaza short swipes were the problem, they were acting like a touch. The player needs to make a decent swipe and then all works as expected. I also used stopping touch to initiate a jump, A tap and the player jumps and a long swipe, player attacks. Thanks for pointing me in the right direction.

                    MurtazaM 1 Reply Last reply
                    2
                    • Keith DavisZ Keith Davis

                      @Murtaza short swipes were the problem, they were acting like a touch. The player needs to make a decent swipe and then all works as expected. I also used stopping touch to initiate a jump, A tap and the player jumps and a long swipe, player attacks. Thanks for pointing me in the right direction.

                      MurtazaM Offline
                      MurtazaM Offline
                      Murtaza
                      Admin
                      wrote on last edited by
                      #10

                      @krdavis
                      Glad you figured it out!

                      1 Reply Last reply
                      1

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Search