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

    How to create a proper loop with a sound file

    Scheduled Pinned Locked Moved
    Help and Support
    4
    8
    95
    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.
    • SplitMindGamingS
      SplitMindGaming
      last edited by

      I wish the play sound had a loop function such as the play music. Future update? For now how can I achieve this seamlessly. Lets say you hold down your character and it plays a buzzing sound. When you let go it stops the sound. I got it to loop but its not seamless. It will sound like buzz buzz buzz buzz instead of buzzzzzzzzzzzzzz if that makes any sense :).

      1 Reply Last reply Reply Quote 0
      • RobinsonXR
        RobinsonX
        last edited by

        There's a way around this. 😊

        Try using a wait behavior and behavior on and behavior off to stop the sound from spamming.

        You can make it so after one second of the sound playing, it can play again.

        1 Reply Last reply Reply Quote 0
        • SplitMindGamingS
          SplitMindGaming
          last edited by

          Yeah ive been at this for hours and tried everything in my power. I got it where the when not touching to turn off the sound down perfect. Its the when touching i cant get right. It loops the audio but its not looping correctly. It just sounds like your hitting the play button really really fast that it sounds distorted and not looping like how the play music loop function does. Screenshot below.34899CB3-AAC4-493F-9AA3-0FC10FC75587.png

          1 Reply Last reply Reply Quote 0
          • KamdroidK
            Kamdroid
            last edited by

            Try using a Started Touching behaviour instead of While Touching.

            1 Reply Last reply Reply Quote 1
            • SplitMindGamingS
              SplitMindGaming
              last edited by

              I tried just now only this time it doesnt loop. I would have to take my finger off the character and touch again continuously. Heres what im trying to do. I have a jetpack character that verytime you touch and hold the character he hovers. What im trying to get is to have the jet propulsion sound loop when you are touching and holding him simulating the hover. When you let go of the character the sound turns off. I dont know guys im ready to pull out my hair. Ive been at this for literally hours just trying to loop an audio which should be simple. Play a sound while your touching and holding the character. Sound turns off when you stop touching. Sounds easy but ohhhh man.

              MelideM 1 Reply Last reply Reply Quote 0
              • MelideM
                Melide @SplitMindGaming
                last edited by

                @SplitMindGaming it's easy. While touching is always activate while you're touching the object. So as long as you touching the object, the behaviors connected will activate. You don't need the Timer here, and you shouldn't put it to 5 as it will repeat each 5 seconds, so not what you wanted. Just delete the timer, and so the 'Behavior Off' that turn off the Timer, as the Timer don't exist now.

                1 Reply Last reply Reply Quote 0
                • SplitMindGamingS
                  SplitMindGaming
                  last edited by

                  Yes it was the first thing I did. When you dont add a timer, while pressing it distorts the audio. It doesnt loop correctly. Imagine an audio that says “ hi my name is “ when clicked. Without the timer and setting it is when touched. It will sound like hihihihihihihihihi. It doesnt wait for the audio to finish before looping. Could be a bug but it makes more sense for a play audio to have a loop function such as play music does.

                  MelideM 1 Reply Last reply Reply Quote 0
                  • MelideM
                    Melide @SplitMindGaming
                    last edited by

                    @SplitMindGaming maybe putting a 'behavior on' connected to the 'play sound' that will turn on the 'play sound' again 🤷 Or 'execute behavior's instead of the 'behavior on'. And when it stopped, it turn off the 'play sound' and 'behavior on/execute behavior' 🤷

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