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. Do touch coordinates change when the screen is moved?

Do touch coordinates change when the screen is moved?

Scheduled Pinned Locked Moved Unsolved Help and Support
15 Posts 4 Posters 3.4k Views 2 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.
  • HamedH Offline
    HamedH Offline
    Hamed
    Admin
    wrote on last edited by
    #6

    Sorry, I told @Murtaza the setup backwards. Screen coordinates will be the same, world coordinates will be different. So if you have world coordinates selected then that is how it should be working.

    iTap DevelopmentI 1 Reply Last reply
    0
    • HamedH Hamed

      Sorry, I told @Murtaza the setup backwards. Screen coordinates will be the same, world coordinates will be different. So if you have world coordinates selected then that is how it should be working.

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

      @Hamed how do you put it on screen coordinates? There is only a toggle for world coordinates, or does turning that off make it screen coordinates? Even with world coordinates off I still have the same problem.

      Jack de WildeJ 1 Reply Last reply
      0
      • iTap DevelopmentI iTap Development

        @Hamed how do you put it on screen coordinates? There is only a toggle for world coordinates, or does turning that off make it screen coordinates? Even with world coordinates off I still have the same problem.

        Jack de WildeJ Offline
        Jack de WildeJ Offline
        Jack de Wilde
        wrote on last edited by Jack8680
        #8

        @iTap-Development World Coordinates returns the coordinates in the world, relative to 0,0 of the world coordinates. Turning it off returns where you touched, relative to the object you are touching. To get the screen coordinates, subtract the touching world coordinates from the screen position and add the screen offset (by default, 16 to x and 12 to y).

        iTap DevelopmentI 1 Reply Last reply
        0
        • Jack de WildeJ Jack de Wilde

          @iTap-Development World Coordinates returns the coordinates in the world, relative to 0,0 of the world coordinates. Turning it off returns where you touched, relative to the object you are touching. To get the screen coordinates, subtract the touching world coordinates from the screen position and add the screen offset (by default, 16 to x and 12 to y).

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

          @Jack8680 yeah that works....but isn't there a way to use screen coordinates without doing that @Murtaza ?

          iTap DevelopmentI 1 Reply Last reply
          0
          • iTap DevelopmentI iTap Development

            @Jack8680 yeah that works....but isn't there a way to use screen coordinates without doing that @Murtaza ?

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

            yeah that works....but isn't there a way to use screen coordinates without doing that @Murtaza ?

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

              Can you make me a quick project to see whats going on? And tell me what you expect to happen and what is happening?

              Thanks.

              iTap DevelopmentI 1 Reply Last reply
              0
              • HamedH Hamed

                Can you make me a quick project to see whats going on? And tell me what you expect to happen and what is happening?

                Thanks.

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

                @Hamed I sent you a project in an email!

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

                  I see whats happening. I assumed you were talking about touches using global behaviours. When turning off world coordinates, it outputs the position relative to itself.

                  eg. you have a blue box in the middle of the screen and you output the y coordinates of the finger with world coordinates off. As soon as your finger goes under neath the blue box, it will be less than zero. If your finger goes above the blue box, it will output the the height of the blue box + the distance away from the edge of the blue box.

                  iTap DevelopmentI 1 Reply Last reply
                  0
                  • HamedH Hamed

                    I see whats happening. I assumed you were talking about touches using global behaviours. When turning off world coordinates, it outputs the position relative to itself.

                    eg. you have a blue box in the middle of the screen and you output the y coordinates of the finger with world coordinates off. As soon as your finger goes under neath the blue box, it will be less than zero. If your finger goes above the blue box, it will output the the height of the blue box + the distance away from the edge of the blue box.

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

                    @Hamed so can I output the coordinates relative to the screen? Sorry if I'm confused🙈

                    Jack de WildeJ 1 Reply Last reply
                    0
                    • iTap DevelopmentI iTap Development

                      @Hamed so can I output the coordinates relative to the screen? Sorry if I'm confused🙈

                      Jack de WildeJ Offline
                      Jack de WildeJ Offline
                      Jack de Wilde
                      wrote on last edited by
                      #15

                      @iTap-Development not directly, but as I said before you can find the coordinates relative to 0,0 of the screen by doing this (for default zoom):
                      X=Touching.X(World Coords)-Screen.X+16
                      Y=Touching.Y(World Coords)-Screen.Y+12
                      When you change the zoom, this won't work anymore since the screen centre would change. To fix this, change the 16 and 12 offsets to the centre of the screen when you zoom.

                      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