hyperPad hyperPad Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Login

    How can I make a smooth d-pad

    Scheduled Pinned Locked Moved Help and Support
    71 Posts 9 Posters 22.1k Views 4 Watching
    Loading More Posts
    • 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.
    • iTap DevelopmentI Offline
      iTap Development @Jack8680
      last edited by

      @Jack8680 that is what I was trying to say to do, and probably failed lol 😂. I didn't think of what you did for the joystick down, but that's a good way to do it!

      1 Reply Last reply Reply Quote 0
      • S Offline
        Stephenn
        last edited by

        Ok thanks for the help everyone.

        1 Reply Last reply Reply Quote 0
        • S Offline
          Stephenn
          last edited by

          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 Reply Quote 0
          • iTap DevelopmentI Offline
            iTap Development @Stephenn
            last edited by

            @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 Reply Quote 0
            • Aidan_FireA Offline
              Aidan_Fire @iTap Development
              last edited by Aidan_Fire

              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 Reply Quote 0
              • S Offline
                Stephenn
                last edited by

                Ok thanks

                1 Reply Last reply Reply Quote 0
                • S Offline
                  Stephenn
                  last edited by

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

                  iTap DevelopmentI 1 Reply Last reply Reply Quote 0
                  • iTap DevelopmentI Offline
                    iTap Development @Stephenn
                    last edited by

                    @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 Reply Quote 0
                    • Aidan_FireA Offline
                      Aidan_Fire
                      last edited by

                      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 Reply Quote 0
                      • iTap DevelopmentI Offline
                        iTap Development @Aidan_Fire
                        last edited by

                        @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 Reply Quote 0
                        • Aidan_FireA Offline
                          Aidan_Fire @iTap Development
                          last edited by 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 TutorialDoctorT 2 Replies Last reply Reply Quote 1
                          • S Offline
                            Stephenn
                            last edited by

                            Ok thanks

                            1 Reply Last reply Reply Quote 0
                            • iTap DevelopmentI Offline
                              iTap Development @Aidan_Fire
                              last edited by

                              @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 Reply Quote 0
                              • TutorialDoctorT Offline
                                TutorialDoctor @Aidan_Fire
                                last edited by TutorialDoctor

                                @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 Reply Quote 1
                                • Aidan_FireA Offline
                                  Aidan_Fire @TutorialDoctor
                                  last edited by

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

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    Stephenn
                                    last edited by

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

                                    iTap DevelopmentI 1 Reply Last reply Reply Quote 0
                                    • Aidan_FireA Offline
                                      Aidan_Fire
                                      last edited by

                                      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 Reply Quote 0
                                      • iTap DevelopmentI Offline
                                        iTap Development @Stephenn
                                        last edited by

                                        @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 Reply Quote 0
                                        • S Offline
                                          Stephenn
                                          last edited by

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

                                          Aidan_FireA 1 Reply Last reply Reply Quote 0
                                          • Aidan_FireA Offline
                                            Aidan_Fire @Stephenn
                                            last edited by

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

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post