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. Turn towards, but while touching the screen

Turn towards, but while touching the screen

Scheduled Pinned Locked Moved Help and Support
8 Posts 4 Posters 1.6k 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.
  • leewsimpsonL Offline
    leewsimpsonL Offline
    leewsimpson
    wrote on last edited by
    #1

    I can get turn towards to work on a tap, but I want it work on a hold.

    IE: the user taps and holds a point on the screen and I want an object to rotate towards it over say 1 second. Nothing happens until I stop touching and then it starts moving. Moving over 0 seconds is ok, just not what I want.

    I have tried to do some crazy logic on move say 5 degrees left or right with a bunch of logic but quickly became unmanageable as the math to work out the logic is complicated.

    Lee

    1 Reply Last reply
    0
    • RobinsonXR Offline
      RobinsonXR Offline
      RobinsonX
      wrote on last edited by
      #2

      0_1560781328073_1C2F0CD3-493A-42DD-A901-155720CF4362.jpeg

      There is a rotate to object behavior so an object will rotate to the target object and there is a feature where you can toggle speed to make the object rotate at a certain speed. :)

      Hope this helps!

      1 Reply Last reply
      0
      • leewsimpsonL Offline
        leewsimpsonL Offline
        leewsimpson
        wrote on last edited by
        #3

        Hey, thanks so much for taking the time to respond. Yes - I have tried that, however while the screen is touched the object does not move- until I lift my finger off.

        I move an object to where the user is touching, and then rotate the player to that object. Is there an order of events, or blocking thats going on?

        MurtazaM KamdroidK 2 Replies Last reply
        0
        • RobinsonXR Offline
          RobinsonXR Offline
          RobinsonX
          wrote on last edited by
          #4

          That's odd.. Looks like a bug, but I don't know if that is intended or not...

          Besides, I found out an another way to recreate what you said.

          The turning is not instant, it takes a while for it to rotate a longer distance.

          And it works on hold! :0

          http://bit.ly/2x2CIk4

          1 Reply Last reply
          0
          • leewsimpsonL leewsimpson

            Hey, thanks so much for taking the time to respond. Yes - I have tried that, however while the screen is touched the object does not move- until I lift my finger off.

            I move an object to where the user is touching, and then rotate the player to that object. Is there an order of events, or blocking thats going on?

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

            I think there may be a bug with this. @leewsimpson can you send an example project to us (contact@hyperpad.com) where it is only working after you lift off?

            Thanks!

            1 Reply Last reply
            0
            • RobinsonXR Offline
              RobinsonXR Offline
              RobinsonX
              wrote on last edited by
              #6

              @Murtaza I think this happens to other behaviors with the speed function too...

              MurtazaM 1 Reply Last reply
              0
              • leewsimpsonL leewsimpson

                Hey, thanks so much for taking the time to respond. Yes - I have tried that, however while the screen is touched the object does not move- until I lift my finger off.

                I move an object to where the user is touching, and then rotate the player to that object. Is there an order of events, or blocking thats going on?

                KamdroidK Offline
                KamdroidK Offline
                Kamdroid
                wrote on last edited by
                #7

                @leewsimpson Could you show a screenshot of your behaviours?

                1 Reply Last reply
                0
                • RobinsonXR RobinsonX

                  @Murtaza I think this happens to other behaviors with the speed function too...

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

                  @robinsonx said in Turn towards, but while touching the screen:

                  @Murtaza I think this happens to other behaviors with the speed function too...

                  From what @Hamed has told me, there is some extra code in place to interrupt behaviours like move so it doesn't do everything at the end. He mentioned that some behaviours may be missing this tweak. So if you have experienced this with others let us know and we'll try to add it for the next update.

                  1 Reply Last reply
                  0

                  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