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

    Collisions with tags affect single objects

    Scheduled Pinned Locked Moved
    Non-Issue
    3
    4
    697
    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

      If you have an object checking for collisions with a tag it belongs to and itself, it will activate the collision event on itself.

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

        @thecheater887 what do you mean it will activate the collision effect on itself? Surely it's not activiating without colliding with anything?

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

          @jack8680 that’s exactly what it’s doing.

          I’m not certain if it’s once or lots of times, but It occurs just after it spawns itself.

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

            I think I know why this happens...

            HyperPad may see this as an intent of the object itself since the object is in the tag's group. Similiarly to using the loop behaviors to iliterate each object, it does it to only one object at a time.

            In this case, the collision behavior will activate the following events because of each object that is collided within it's tag, it will have the intent of that object that it has collided to.

            For example, two objects are going to be used. Object 2 is in a group. Object 1 has a behavior where when it collides within that group to change the color of it's tag. If object 1 collided with object 2 with the tag, it will change the color of object 2 as object 2 was the intent of this case.

            This may be confusing, but I learned from experimenting with tags and looping properties.

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