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

    Best way to start one sound, again and again?

    Scheduled Pinned Locked Moved
    Help and Support
    2
    4
    166
    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.
    • D
      Deeeds
      last edited by

      Imagine a scenario where a sound needs to be played very frequently, but polyphony isn't desirable or necessary.

      In other words, I don't mind if each play of the sound kills the last playing version of the sound.

      In fact, that's what I want.

      Can I do this? How?

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

        @Deeeds Put the sound under a timer. Every time the sound plays again, the previous will stop. To make sounds stack, it has to be a separate play sound behaviour (easily done using spawn object).

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

          @Aidan-Oxley The sounds are playing as a result of a game incident. So a timer will only get in the way. They must play the moment the player interacts with the element, but they often roll over many of them, in rapid succession.

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

            @Deeeds Ok, have just 1 of the Play Sound behaviour (turned off) in any object in your scene that you know will never get destroyed or disabled. Whenever the player interacts with that element, use Behaviour On with the Play Sound behaviour selected.

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