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. Help and Support
  3. loop not working

loop not working

Scheduled Pinned Locked Moved Help and Support
5 Posts 3 Posters 1.0k 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.
  • LupoL Offline
    LupoL Offline
    Lupo
    wrote on last edited by
    #1

    When adding a simple loop with number of times to execute put to 5 and then adding an alert popup which should be shown 5 times.
    But the alert is actually only shown once (with index 4).
    What am I doing wrong?

    RobinsonXR 1 Reply Last reply
    1
    • LupoL Lupo

      When adding a simple loop with number of times to execute put to 5 and then adding an alert popup which should be shown 5 times.
      But the alert is actually only shown once (with index 4).
      What am I doing wrong?

      RobinsonXR Offline
      RobinsonXR Offline
      RobinsonX
      wrote on last edited by
      #2

      @Lupo The alert popup is actually executed 5 times - the problem is that you can only see one popup at once, so you're really seeing the last one.

      You can see that the alert behavior has a little lightning icon - that means that it triggers after an event. You can make it so the after the alert is closed, another one can pop up.

      LupoL 1 Reply Last reply
      0
      • RobinsonXR RobinsonX

        @Lupo The alert popup is actually executed 5 times - the problem is that you can only see one popup at once, so you're really seeing the last one.

        You can see that the alert behavior has a little lightning icon - that means that it triggers after an event. You can make it so the after the alert is closed, another one can pop up.

        LupoL Offline
        LupoL Offline
        Lupo
        wrote on last edited by
        #3

        @RobinsonX Actuall the popup was only test. Same effect I have when replacing the popup with a Wait 1s and then playing a sound. I only hear the sound once after 1 second. I expected to hear the sound 5 times with 1 second intervall…

        KamdroidK RobinsonXR 2 Replies Last reply
        0
        • LupoL Lupo

          @RobinsonX Actuall the popup was only test. Same effect I have when replacing the popup with a Wait 1s and then playing a sound. I only hear the sound once after 1 second. I expected to hear the sound 5 times with 1 second intervall…

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

          @Lupo Last time I checked, it seems that Loop basically ignores any wait/time-based/event behaviours.

          I do hope they will add support for this in the future.

          1 Reply Last reply
          1
          • LupoL Lupo

            @RobinsonX Actuall the popup was only test. Same effect I have when replacing the popup with a Wait 1s and then playing a sound. I only hear the sound once after 1 second. I expected to hear the sound 5 times with 1 second intervall…

            RobinsonXR Offline
            RobinsonXR Offline
            RobinsonX
            wrote on last edited by
            #5

            @Lupo The loop triggers events instantaneously, so it doesn't wait until the behaviors under it are done executing like Kamdroid said.

            The wait behavior would execute once because every time it's executed, it interrupts its previous instance - it's like resetting a clock every time it executes.

            The way you would achieve something like this is to connect the behaviors from the bottom to the top so it makes a loop. When you want to stop the loop, use the Behavior Off behavior to interrupt the chain of events.

            1 Reply Last reply
            1

            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