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. Non-Issue
  4. Broadcast message in a loop

Broadcast message in a loop

Scheduled Pinned Locked Moved Non-Issue
6 Posts 5 Posters 1.7k 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.
  • Jack de WildeJ Offline
    Jack de WildeJ Offline
    Jack de Wilde
    wrote on last edited by
    #1

    Broadcast message in a loop doesn't work. It does work in a timer but that's slow for looping through multiple dynamic messages. I'm assuming it's the same as how behaviours with a duration other than 0 don't work in loops and timer(0s). I hope this can be changed.

    Also, I already previously posted this a while ago, but conditional loops still say "loop until {condition}" but actually do "loop while {condition}". E.g. "Loop until < 10" loops WHILE less than 10.

    KamdroidK 1 Reply Last reply
    0
    • Jack de WildeJ Jack de Wilde

      Broadcast message in a loop doesn't work. It does work in a timer but that's slow for looping through multiple dynamic messages. I'm assuming it's the same as how behaviours with a duration other than 0 don't work in loops and timer(0s). I hope this can be changed.

      Also, I already previously posted this a while ago, but conditional loops still say "loop until {condition}" but actually do "loop while {condition}". E.g. "Loop until < 10" loops WHILE less than 10.

      KamdroidK Offline
      KamdroidK Offline
      Kamdroid
      wrote on last edited by Kamdroid
      #2

      @Jack8680 Yea, Loop behaviour really should be allowed to have delays. Still finding myself using timer instead if Loop due to this.

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

        Sorry this got buried.

        This isn't actually a bug. Broadcast message does work in a loop, the thing is that if you put a both a loop and a receive message behaviour onto the canvas, they can be executed in any order. The problem occurs when the loop behaviour is executed before the receive message behaviour is.

        Solution: Put the loop and receive message behaviours into the same behaviour bundle, with the receive message executed before the loop behaviour.

        Aidan_FireA Jack de WildeJ 2 Replies Last reply
        0
        • HamedH Hamed

          Sorry this got buried.

          This isn't actually a bug. Broadcast message does work in a loop, the thing is that if you put a both a loop and a receive message behaviour onto the canvas, they can be executed in any order. The problem occurs when the loop behaviour is executed before the receive message behaviour is.

          Solution: Put the loop and receive message behaviours into the same behaviour bundle, with the receive message executed before the loop behaviour.

          Aidan_FireA Offline
          Aidan_FireA Offline
          Aidan_Fire
          wrote on last edited by Aidan_Fire
          #4

          @hamed What if I am broadcasting in a loop from one object, and I want to receive the message in a different object? Loop and receive can't be in the same bundle then. EDIT: Nevermind idk what this is talking about because I just tested exactly what I just said and it works fine. Broadcast a message 50 times in a loop, the other object received 50 messages.

          1 Reply Last reply
          0
          • HamedH Hamed

            Sorry this got buried.

            This isn't actually a bug. Broadcast message does work in a loop, the thing is that if you put a both a loop and a receive message behaviour onto the canvas, they can be executed in any order. The problem occurs when the loop behaviour is executed before the receive message behaviour is.

            Solution: Put the loop and receive message behaviours into the same behaviour bundle, with the receive message executed before the loop behaviour.

            Jack de WildeJ Offline
            Jack de WildeJ Offline
            Jack de Wilde
            wrote on last edited by
            #5

            @hamed yeah this is old, I think I made a post later saying I was wrong and made a mistake somewhere else that made it seem like it didn't work in a loop, was probably that the broadcast ran before receive was intitialised.

            D 1 Reply Last reply
            0
            • Jack de WildeJ Jack de Wilde

              @hamed yeah this is old, I think I made a post later saying I was wrong and made a mistake somewhere else that made it seem like it didn't work in a loop, was probably that the broadcast ran before receive was intitialised.

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

              @jack8680 I hadn't realised this before... but this seems to mean it's possible to send unique messages to unique objects, like iterating over them.

              Which is kind of cool.

              Very messy to setup and test, but potentially powerful.

              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