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

    Suggest: Screen Drag & Drop

    Scheduled Pinned Locked Moved
    Comments & Feedback
    4
    14
    1.4k
    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.
    • T
      Thecheater887
      last edited by

      I have tried and failed. If you can successfully and efficiently do it, feel free to share :)

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

        @Thecheater887 my scrolling example project I made will do this with some little changes.... if you want, I can make another project that would to this. I could have it to you by tomorrow evening at the LATEST. And screen scrolling limits would be super easy and efficient!

        1 Reply Last reply Reply Quote 0
        • T
          Thecheater887
          last edited by

          I don't want to put you out of your way, but if you're willing to, I would much appreciate it!

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

            @Thecheater887 I'll be on a long drive tomorrow so it won't be a problem!

            1 Reply Last reply Reply Quote 1
            • Jack8680J
              Jack8680 @Thecheater887
              last edited by Jack8680

              @Thecheater887 you could use a drag and drop object that scales really large on the scene UI, and move the screen to its position*-1. For example, if you drag the object to the left 2 metres, the screen would move to the right 2 metres.
              EDIT: Just realised that drag and drop somehow moves the centre to where you touch. I don't remember this previously happening, but I guess it does. This won't work exactly like this then.
              EDIT 2:
              Okay, by finding the difference in position between the current while touching and previous tick, I've made an example screen drag and drop. It's on the hub here. It uses the value behaviour after the other behaviours to compare positions to the last tick. Here's a picture of all the behaviours used for screen dragging:
              0_1479597072332_IMG_2502.PNG

              Dragging limits would be doable because it's based on position, so you could do if X<left.X, move to left.X or something similar. You could put these under the while touching so it only test the limits while the screen is moving.

              A screen dragging behaviour would probably be useful though eventually.

              1 Reply Last reply Reply Quote 1
              • T
                Thecheater887
                last edited by Thecheater887

                Thanks! That works, but there's an occasional but handleable framedrop.

                Now, bonus points, how would one achieve two finger pinch to zoom? XD

                UPDATE: I exactly duped it in another project, and, well, it is very shaken to say the least, and hardly works. Is it only for default screen zoom, or relies on a variable I have set improperly?

                Jack8680J iTap DevelopmentI 3 Replies Last reply Reply Quote 0
                • Jack8680J
                  Jack8680 @Thecheater887
                  last edited by

                  @Thecheater887 I'm not sure, perhaps double check the behaviours, or send it to me and I'll look at it.

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

                    @Thecheater887 I have pinch to zoom mostly figured out. Do you still want me to make my example?

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

                      @Thecheater887 I have it part way done, but im not going to work on it more yet if you don't need it.

                      T 1 Reply Last reply Reply Quote 0
                      • T
                        Thecheater887 @iTap Development
                        last edited by

                        @iTap-Development sorry, I don't get notifications.

                        I can't seme to get his working outside of the sandbox, which I find stupid, but..

                        Yea, if you could continue, that would be great!

                        iTap DevelopmentI 2 Replies Last reply Reply Quote 0
                        • iTap DevelopmentI
                          iTap Development @Thecheater887
                          last edited by

                          @Thecheater887 ok I'll try to finish today!

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

                            @Thecheater887 it might take a little longer that i thought, because i'm having an issue with world coordinates. But murtaza is helping with it.

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