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

    Other than Patrol, how to make repeating series of actions

    Scheduled Pinned Locked Moved
    Help and Support
    5
    62
    2.9k
    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.
    • Aidan_FireA
      Aidan_Fire
      last edited by

      Loops probably don’t work how you think, a loop does not have a time, it simply repeats the set of behaviours directly underneath it as fast as possible however many times you set it. This also means your whole project will freeze until they are done, and anything with a duration will be given no time at all to complete.

      1 Reply Last reply Reply Quote 0
      • D
        Deeeds @Aidan_Fire
        last edited by

        @Aidan-Oxley I found the bugs I was looking for...

        0_1509997715621_buggyCurves.gif

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

          @Deeeds Not sure what you mean. How do you record your screen like that and make it display on forums? I’m guessing it’s a GIF, I have no idea how to make them. I only know how to use the iOS 11 screen recorder but it records videos and last time I tried to upload a video hyperPad wouldn’t let me.

          D 1 Reply Last reply Reply Quote 0
          • D
            Deeeds @Aidan_Fire
            last edited by

            @Aidan-Oxley Yes, gif. Made in Photoshop from the video that was made with the quicktime recording technique. Then scaled and aggressively compressed to make the forum happy. Has a 1MB limit that's super annoying.

            Should be able to upload an inline small to medium quicktime files. They're using Amazon for image hosting. I think it's just a switch to permit quicktime movies.

            D 1 Reply Last reply Reply Quote 0
            • D
              Deeeds @Deeeds
              last edited by

              @Aidan-Oxley

              Here's that project, with the funky way I solved looping.

              Is there really no simple way to loop over a set of commands a specified or infinite amount without resorting to trickery?

              http://bit.ly/2zBY5fl

              I don't know where this is stored, or how hyperPad's online storage works. Can you explain it or link to their practices?

              I read the terms of service real quick, didn't see anything in there about their storage.

              Aidan_FireA 2 Replies Last reply Reply Quote 0
              • Aidan_FireA
                Aidan_Fire @Deeeds
                last edited by Aidan_Fire

                @Deeeds I’m not exactly sure how it works, but I’ve been using it for ages. All I know is that if I open the link in safari, I get your project directly, and that after 7 days it will delete itself.

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

                  @Deeeds I couldn’t find any repeating loops in that project, but it looks more like a game you were making or something, looks interesting. Did you send the wrong project link? Or is it somewhere in there and I can’t find it?

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    Deeeds @Aidan_Fire
                    last edited by

                    @Aidan-Oxley I have no idea what I sent, nor do I know of a way to check it once it's online...

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

                      @Deeeds Copy your own link and paste into safari. It’s the project with circle thingies with green bars in them, when I tap they jump and spin. When I spam tap they go absolutely crazy.

                      D 1 Reply Last reply Reply Quote 0
                      • D
                        Deeeds @Aidan_Fire
                        last edited by

                        @Aidan-Oxley Argh, yes. The gravity changing infinite room.

                        Sorry.

                        That's not what I meant to send at all.

                        I communicate on Mac, not iPad. The idea of trying to navigate anywhere on an iPad fills me with dread.

                        D 1 Reply Last reply Reply Quote 0
                        • D
                          Deeeds @Deeeds
                          last edited by

                          @Aidan-Oxley

                          This is the ease curves.

                          http://bit.ly/2zB3rYd

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

                            @Deeeds The way you have it looping is fine, if you want the loop to stop eventually you’d just have a behaviour off to turn the timer off. I added a random red square to show you what I meant with execute behaviour. Also, just a hint for making behaviours neater, try double tapping a parent behaviour, I seem to be the only person I know that actually uses this lol, everyone else’s projects I see have behaviours sitting under parents kinda randomly. http://bit.ly/2ybv1Hf

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

                              Ohhh, I think I see what you want to do.

                              Ok. There are a couple of ways to do this. Lets say you want to move something back and forth forever.

                              Method one:

                              Add behaviour bundel
                              Connect Move behaviour to bottom of behaviour bundle
                              Connect your second move to the bottom of move1.
                              Then connect bottom of move 2, to the top of move 1.

                              This will make it loop.

                              Method to:

                              Move 1 ---> Move 2 --> Behaviour On (Move 1).

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

                                @Murtaza Or use the new behaviour Execute Behaviour rather than Behaviour On.

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

                                  Yeah I mentioned that already above, except with a loop instead.

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    Deeeds @Murtaza
                                    last edited by Deeeds

                                    @Murtaza I've tried variations on this, and can't get it to work.

                                    Please, without the snark "It's how loops work", can you try to explain how you intended loops to work in hyperPad, and, specifically, how something like two actions should be repeated, sequentially, in the world of hyperPad... which is different to most of the rest of the world.

                                    Imagine the simplest possible thing: two Set Colour behaviours to operate sequentially, one to black, the other to white. One has a duration of 0, the other of half a second fading back to the other.

                                    I want to run this 10x, a flashing of black, white, black, white, etc...

                                    For some strange reason, how to do this in hyperPad is not at all obvious, nor explained in any manner that I understand.

                                    Granted, I could be dense, but having tried all the variations of ways to do this that I can think of, I'm also out of ideas... for what should be amazingly simple to do.

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

                                      @Deeeds Loops are intended for stuff like looping through an array or performing repeated calculations.

                                      It'd be cool if they worked with behaviours with duration, but I expect it'd be difficult to program since the loop wouldn't restart until the duration finishes, so it'd have to keep track of what is running so it knows when everything in the loop is done, and it needs to work with dynamic durations and conditional behaviours etc.

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        Deeeds @Aidan_Fire
                                        last edited by Deeeds

                                        @Aidan-Oxley @Murtaza @Jack8680

                                        Continuing on this theme, whats the right/suggested/ideal way to perform and then repeat a series of animation events an arbitrary number of times?

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

                                          @Deeeds Can you not just use the Play Animation behaviour with your timer and repeat logic?

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            Deeeds @Aidan_Fire
                                            last edited by

                                            @Aidan-Oxley " series of animation events"

                                            eg. Move by, rotate by, Set Color, etc...

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