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

    How to select tags to collide with other tags

    Scheduled Pinned Locked Moved
    Help and Support
    5
    7
    140
    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

      Hey its me once again. Might be an easy solution but I cant find this answer anywhere on the manuals. I want to select a tag to collide with another tag under the collided behavior. I tried getting another behavior which is the “get objects by tag” and dragging its values to the first collided spot but this doesnt work. I included a screenshot.27A13177-E54B-42BC-88AB-4F151B3CDB29.jpeg B2ACBB20-1528-4434-9B15-EA8B0D5FE222.jpeg

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

        @SplitMindGaming currently I don't think it's easily possible. The best way to do this would be to have the collided behaviour logic inside of the objects with the tags you're using.

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

          @Aidan-Oxley yes I was afraid so. Im using tiling images of a floor. I just didnt want the code to be clustered by putting the collide behavior to each little top tileset. Thanks for the reply

          1 Reply Last reply Reply Quote 0
          • KamdroidK
            Kamdroid
            last edited by Kamdroid

            It would be possible, if hyperPad didn't override dynamic creations of colliding behaviours. At least that's what I think is happening.

            As you can see, these behaviours properly loop every object in player and enemy tags, to collide with any ground or ice tags.

            However only 1 of these objects will have collision triggered, mostly the last object, because I think it gets overridden.

            19E49315-64C6-4599-9DF2-DD0BD7F9560E.jpeg

            E33E4810-01F9-4BEC-8E69-6DB212D6C1A3.png

            Also tried using a "behaviour on" loop with broadcast/receive message system but still has the same issue.

            Also note that I'm not using "index 0", but the loop index, that's a hyperPad display glitch.

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

              @Kamdroid you don't need a loop. If you don't add a loop it should work. When an object collides in that group, it should be passing the one that collided down.

              When you have it in a loop, you're "overwriting" the previous collide behaviour

              KamdroidK 1 Reply Last reply Reply Quote 1
              • KamdroidK
                Kamdroid @Hamed
                last edited by

                @Hamed So how would you make tags collide with tags? (like I tried, without using a loop)

                1 Reply Last reply Reply Quote 0
                • RobinsonXR
                  RobinsonX
                  last edited by

                  I thought literally putting two groups of objects in a collide behavior would work.. Maybe a bug?

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