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

    What would cause broadcast/receive message behaviors to fail?

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

      My structure is I have object A and object B, also, debug log label C. Object A requests information from object B, object B updates its information after sending the information to object A, and object A continues.... in theory.

      Before I made the debug label use receive message (which does not work), it showed I was successfully executing three of four events, the receive on object A, behavior 4 failing.

      All of these events are occurring (in theory) on the same frame.

      1 Reply Last reply Reply Quote 0
      • MurtazaM
        Murtaza Admin
        last edited by

        are you on the latest update? I think there were some bugs with these behavioursbthatvwere fixed recently.

        Also are you sure the broadcast and receive are even being executed? Put something like a play sound before each one. If a sound plays then at least you know the logic up until that point is fine.

        My guess is there is some sort of logic error here. Like the receive is happening before the broadcast.

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

          It seemed the issue was that I was running the risk of broadcasting right after trying to receive on the same frame. By adding a one frame delay to the receives, most of my issues were solved.

          I recommend new users take note of that :)

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

            @thecheater887 not sure if it's the same issue, but something that's gotten me before is if you run the broadcast before the receive behaviour is enabled it won't work.

            So if your broadcast and receive are both enabled on the same frame (also happens with the first frame) you need to make sure they run in the right order, so the receive is enabled first.

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

              @jack8680 Same issue, different words. There’s no way to verify the order they run in unless you wait a frame because I had it where one stack couldn’t continue before the request was finished and it failed.

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