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. How can I make a smooth d-pad

How can I make a smooth d-pad

Scheduled Pinned Locked Moved Help and Support
71 Posts 9 Posters 37.9k Views 4 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.
  • S Offline
    S Offline
    Stephenn
    wrote on last edited by
    #24

    Ok so I have my joystick 0_1493289167232_IMG_1321.PNG if I walk into an object I kind of squish into it can someone tell me how to fix this?

    iTap DevelopmentI 1 Reply Last reply
    0
    • S Stephenn

      Ok so I have my joystick 0_1493289167232_IMG_1321.PNG if I walk into an object I kind of squish into it can someone tell me how to fix this?

      iTap DevelopmentI Offline
      iTap DevelopmentI Offline
      iTap Development
      wrote on last edited by
      #25

      @Stephenn you could do this. Put the move behaviors in the "behavior off"'s and have each of the collided behaviors have one direction (up down left or right) selected. Now since the "stopped colliding" behavior doesn't have directions, you can just turn the move behaviors back on when the joystick moves in the opposite direction, since that would move it away from the object you hit.0_1493290353899_IMG_1866.PNG

      @Murtaza why doesn't the stopped colliding have directions?

      Aidan_FireA 1 Reply Last reply
      0
      • iTap DevelopmentI iTap Development

        @Stephenn you could do this. Put the move behaviors in the "behavior off"'s and have each of the collided behaviors have one direction (up down left or right) selected. Now since the "stopped colliding" behavior doesn't have directions, you can just turn the move behaviors back on when the joystick moves in the opposite direction, since that would move it away from the object you hit.0_1493290353899_IMG_1866.PNG

        @Murtaza why doesn't the stopped colliding have directions?

        Aidan_FireA Offline
        Aidan_FireA Offline
        Aidan_Fire
        wrote on last edited by Aidan_Fire
        #26

        I checked the screenshot I sent you, played the project and it works, there is no diagonal movement. Try it. @Jack8680 yeah but no one will notice it lol. Well I sort of do, but I don't really care, doesn't affect it in any major way.

        1 Reply Last reply
        0
        • S Offline
          S Offline
          Stephenn
          wrote on last edited by
          #27

          Ok thanks

          1 Reply Last reply
          0
          • S Offline
            S Offline
            Stephenn
            wrote on last edited by
            #28

            @Aidan-Oxley, or anyone, how did you change the value of the box container?

            iTap DevelopmentI 1 Reply Last reply
            0
            • S Stephenn

              @Aidan-Oxley, or anyone, how did you change the value of the box container?

              iTap DevelopmentI Offline
              iTap DevelopmentI Offline
              iTap Development
              wrote on last edited by
              #29

              @Stephenn, any behavior output you put in the box container will set the value of the box container when the behavior runs . And you can drag as many outputs in a box container that you need.

              1 Reply Last reply
              0
              • Aidan_FireA Offline
                Aidan_FireA Offline
                Aidan_Fire
                wrote on last edited by
                #30

                0_1493336261810_IMG_3523.PNG
                Press on the box container, then press on the symbol to the left of the default value.

                iTap DevelopmentI 1 Reply Last reply
                0
                • Aidan_FireA Aidan_Fire

                  0_1493336261810_IMG_3523.PNG
                  Press on the box container, then press on the symbol to the left of the default value.

                  iTap DevelopmentI Offline
                  iTap DevelopmentI Offline
                  iTap Development
                  wrote on last edited by
                  #31

                  @Aidan-Oxley I think this will work better, because with what you did you have to use the extra "set input field" behavior. For mine, When one of the add value's is triggered it will set the box container to its output automatically.0_1493340437316_IMG_1870.PNG

                  Aidan_FireA 1 Reply Last reply
                  0
                  • iTap DevelopmentI iTap Development

                    @Aidan-Oxley I think this will work better, because with what you did you have to use the extra "set input field" behavior. For mine, When one of the add value's is triggered it will set the box container to its output automatically.0_1493340437316_IMG_1870.PNG

                    Aidan_FireA Offline
                    Aidan_FireA Offline
                    Aidan_Fire
                    wrote on last edited by Aidan_Fire
                    #32

                    @iTap-Development Yeah I'm still not used to that, I'm still stuck in the old way of using box containers lol before they let you have multiple storages.

                    iTap DevelopmentI TutorialDoctorT 2 Replies Last reply
                    1
                    • S Offline
                      S Offline
                      Stephenn
                      wrote on last edited by
                      #33

                      Ok thanks

                      1 Reply Last reply
                      0
                      • Aidan_FireA Aidan_Fire

                        @iTap-Development Yeah I'm still not used to that, I'm still stuck in the old way of using box containers lol before they let you have multiple storages.

                        iTap DevelopmentI Offline
                        iTap DevelopmentI Offline
                        iTap Development
                        wrote on last edited by
                        #34

                        @Aidan-Oxley yeah I found it out by trying to put an output in the default value input field, and when it move up to its own input field I tried again and found you could do multiple. Lol

                        1 Reply Last reply
                        0
                        • Aidan_FireA Aidan_Fire

                          @iTap-Development Yeah I'm still not used to that, I'm still stuck in the old way of using box containers lol before they let you have multiple storages.

                          TutorialDoctorT Offline
                          TutorialDoctorT Offline
                          TutorialDoctor
                          wrote on last edited by TutorialDoctor
                          #35

                          @Aidan-Oxley I SOOO did not know box containers could do this. How do you access one of the values?

                          Aidan_FireA 1 Reply Last reply
                          1
                          • TutorialDoctorT TutorialDoctor

                            @Aidan-Oxley I SOOO did not know box containers could do this. How do you access one of the values?

                            Aidan_FireA Offline
                            Aidan_FireA Offline
                            Aidan_Fire
                            wrote on last edited by
                            #36

                            @TutorialDoctor I'd like to know that too 😛 never used it.

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              Stephenn
                              wrote on last edited by
                              #37

                              Does anyone know how I could make a 2x2 grid for a player to move on?

                              iTap DevelopmentI 1 Reply Last reply
                              0
                              • Aidan_FireA Offline
                                Aidan_FireA Offline
                                Aidan_Fire
                                wrote on last edited by
                                #38

                                Yes, look for my project on the hub called something like grid lock (although I don't think it works properly for negative coordinates). I think for that I would make the joystick player invisible and add a second scenery player that just moves to the invisible player, on a grid.

                                1 Reply Last reply
                                0
                                • S Stephenn

                                  Does anyone know how I could make a 2x2 grid for a player to move on?

                                  iTap DevelopmentI Offline
                                  iTap DevelopmentI Offline
                                  iTap Development
                                  wrote on last edited by
                                  #39

                                  @Stephenn you can divid the position by the grid size, round that number. And then multiply by the grid size.
                                  So an x position of 7.4 would move to an x position of 8 since 7.4/2 is 3.7 rounded is 4 and 4*2 =8

                                  1 Reply Last reply
                                  0
                                  • S Offline
                                    S Offline
                                    Stephenn
                                    wrote on last edited by
                                    #40

                                    Ok thanks, I was over complicating by using modulus and subtract.

                                    Aidan_FireA 1 Reply Last reply
                                    0
                                    • S Stephenn

                                      Ok thanks, I was over complicating by using modulus and subtract.

                                      Aidan_FireA Offline
                                      Aidan_FireA Offline
                                      Aidan_Fire
                                      wrote on last edited by
                                      #41

                                      @Stephenn Lol my grid lock is actually very old, round number didn't even exist when I made it.

                                      1 Reply Last reply
                                      0
                                      • MurtazaM Online
                                        MurtazaM Online
                                        Murtaza
                                        Admin
                                        wrote on last edited by
                                        #42

                                        We actually have a grid demo we use for our internal testing. I thought we uploaded it to the hub but I guess not. I'll get @Hamed to upload it when he gets a minute free.

                                        1 Reply Last reply
                                        0
                                        • HamedH Offline
                                          HamedH Offline
                                          Hamed
                                          Admin
                                          wrote on last edited by
                                          #43

                                          It's on the hub!

                                          https://www.hyperpad.com/projects/ys5ygoag

                                          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