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. Bug Reports
  3. Move to Point in Screen Coordinates Flawed/Broken/Wrong

Move to Point in Screen Coordinates Flawed/Broken/Wrong

Scheduled Pinned Locked Moved Bug Reports
3 Posts 2 Posters 584 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.
  • D Offline
    D Offline
    Deeeds
    wrote on last edited by
    #1

    If you have the camera/view/screen set to follow an object, Move to Point Screen Coordinates fixates on the position the target point was in world coordinates at the moment it's called.

    It should be using Screen Coordinates, all the time, not just a virtualisation of world coordinates at the moment of evocation.

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

      What do you mean? Can you post some screenshots?

      D 1 Reply Last reply
      0
      • HamedH Hamed

        What do you mean? Can you post some screenshots?

        D Offline
        D Offline
        Deeeds
        wrote on last edited by
        #3

        @Hamed

        I don't think screen shots can help, because you can't see anything, which is the problem.

        When moving an object according to Screen Space, it should move to the position of the screen that it's being told to move towards. For this example, let's imagine the upper middle of the screen, in hyperPad units. Let's say that's x: 16, y 20 (4 units below the top edge, middle of the x range).

        If I tell an object from within the game world to move to this location, over a duration of 2 seconds, it should. Whilst the object is making this transition in location, regardless of where the Screen View moves within the game world, it should always be aiming for this position in the Screen View.

        This is not what's happening.

        Instead, at the moment the Move To Screen Coordinates Behaviour is called, the behaviour checks for the world location of that Screen location, and then uses that world location as the target destination. So if the Screen view moves, the moving object is no longer heading to the determined Screen Position, it's heading for where that Screen Position previously was in the world coordinate space.

        Assumes:

        Screen space is that space we can see on the iPad, it's the view's bounds, expressed in units (or percentages) from the left edge of the device's screen, to the right, and up and down.

        When using a Screen Follow "behaviour" on an object, it's acting like a camera in the world, moving the view of the Screen through the world with its subject, the target object.

        Move To Screen Coordinates is not respecting this, it's determining the world position of the targeted screen location at the time of command issuance.

        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