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. General Discussion
  3. How to rotate in a loop?

How to rotate in a loop?

Scheduled Pinned Locked Moved General Discussion
8 Posts 5 Posters 1.5k Views 3 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.
  • John LiaoJ Offline
    John LiaoJ Offline
    John Liao
    wrote on last edited by
    #1

    I'd like to rotate an object 5 times in a loop. I setup it as the attached pic, but just rotate once.... anywhere wrong?

    0_1502434238959_IMG_1119.PNG

    iTap DevelopmentI 1 Reply Last reply
    0
    • John LiaoJ John Liao

      I'd like to rotate an object 5 times in a loop. I setup it as the attached pic, but just rotate once.... anywhere wrong?

      0_1502434238959_IMG_1119.PNG

      iTap DevelopmentI Offline
      iTap DevelopmentI Offline
      iTap Development
      wrote on last edited by iTap Development
      #2

      @John-Liao you are using a rotate to angle behavior, so unless you are rotating it to a value that changes, it will keep rotating to the same spot(it won’t rotate😄). You should use a rotate by behavior instead.
      Also, I wouldn’t use a loop....I’d just multiply the number you want to rotate by by 5 instead of looping five times.

      1 Reply Last reply
      0
      • Aidan_FireA Offline
        Aidan_FireA Offline
        Aidan_Fire
        wrote on last edited by
        #3

        @John-Liao 1. As @iTap-Development said you are using rotate to angle which means it will rotate to that same angle, so maybe you should change it to a Rotate By behaviour. 2. You have the loop sitting at the bottom of rotate to angle, what you should have is loop sitting above it with a line drawn from the bottom of the loop to the rotate behaviour. 3. Loops will run pretty much instantly, you won't even see it rotate.

        1 Reply Last reply
        0
        • John LiaoJ Offline
          John LiaoJ Offline
          John Liao
          wrote on last edited by
          #4

          Thank u.
          I tried the rotate by behavior, as attached pic. However it's the same, only rotate once but not repeat 5 times in the loop.... anywhere wrong?

          0_1502522484100_IMG_1122.PNG

          Jack de WildeJ 1 Reply Last reply
          0
          • John LiaoJ John Liao

            Thank u.
            I tried the rotate by behavior, as attached pic. However it's the same, only rotate once but not repeat 5 times in the loop.... anywhere wrong?

            0_1502522484100_IMG_1122.PNG

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

            @John-Liao what are you trying to achieve with this? A loop runs the behaviours below as fast as possible, meaning the next rotate behaviour activates before the current one finishes (it basically runs the behaviour 5 times at once). They overwrite each other due to their overlapping durations, so it will only do the last one. You could set the duration to 0, and then it will do all of them, but there's no point since it'll be instant.

            John LiaoJ 1 Reply Last reply
            0
            • Jack de WildeJ Jack de Wilde

              @John-Liao what are you trying to achieve with this? A loop runs the behaviours below as fast as possible, meaning the next rotate behaviour activates before the current one finishes (it basically runs the behaviour 5 times at once). They overwrite each other due to their overlapping durations, so it will only do the last one. You could set the duration to 0, and then it will do all of them, but there's no point since it'll be instant.

              John LiaoJ Offline
              John LiaoJ Offline
              John Liao
              wrote on last edited by
              #6

              @Jack8680 Thanks. I solved the problem by using the "Multiply Values" to times the index value and degree value in the loop. As following pic.
              Thanks a lot.

              0_1502546711426_IMG_1123.PNG

              D 1 Reply Last reply
              0
              • John LiaoJ John Liao

                @Jack8680 Thanks. I solved the problem by using the "Multiply Values" to times the index value and degree value in the loop. As following pic.
                Thanks a lot.

                0_1502546711426_IMG_1123.PNG

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

                @John-Liao Did this rotate five times as you wanted? What are the settings in your loop?

                Jack de WildeJ 1 Reply Last reply
                0
                • D Deeeds

                  @John-Liao Did this rotate five times as you wanted? What are the settings in your loop?

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

                  @Deeeds it rotates 5 times because it's multiplying the last value of the loop index by 5 and rotating all of that at once. I forgot to reply here back then; the loop is basically doing nothing here.

                  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