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

    Set specific collide point

    Scheduled Pinned Locked Moved
    Help and Support
    2
    5
    118
    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.
    • SplitMindGamingS
      SplitMindGaming
      last edited by

      I have this shape that i only want to trigger a series of events when colliding with a specific point. Is there a way to do this? I know i can simply create another empty object and place it where i want the collide point to be but the problem is that as you switch through different screen aspects. The empty container will not be in the right location. I think I asked this before but i notice theres a drag position option when selecting the object i want to collide with. But this apparently does nothing. I have included a screenshot of a specific shape that i only wanted the collide point to register from. Any ideas?F28DA719-22F7-49EE-823A-0B27471A9778.jpeg

      1 Reply Last reply Reply Quote 0
      • HamedH
        Hamed Admin
        last edited by

        Collided behaviour outputs an x and y position of where it collided: https://hyperpad.zendesk.com/hc/en-us/articles/115001430843-Collided

        Does that do what you need?

        SplitMindGamingS 1 Reply Last reply Reply Quote 0
        • SplitMindGamingS
          SplitMindGaming @Hamed
          last edited by

          @Hamed how do you set it up to pinpoint where you want the collide to happen if i output the x and y. I filled in the illustration to get a better point on why i only want the specific collide point. Think of a mario tube that you enter. I only want the collide to register the chain of event from the entry point. Because if i choose like top or bottom. The player can enter the tube from any top or bottom point.B6EF1C3D-4806-42D4-95F5-051C3F648A01.jpeg

          1 Reply Last reply Reply Quote 0
          • HamedH
            Hamed Admin
            last edited by

            I would have an if connected to collide behaviour. If X/Y is between a certain position, perform this action.

            To find out what to make your if behaviour, output x and y to a label and see what to make it.

            SplitMindGamingS 1 Reply Last reply Reply Quote 0
            • SplitMindGamingS
              SplitMindGaming @Hamed
              last edited by

              @Hamed oh I see yes thats perfect. Thank you.

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