Making the same sound play over itself

I'm trying to make an actor that repeats the same sound over and over again, so quickly that it replays the sound faster than the actual sound itself. (I have an event that plays like a half a second sound every 0.3 seconds). My problem is that when it plays the sound again after 0.3 seconds, it immediately stops the last sound, removing the effect I'm trying to accomplish. (I'm using a bunch of woosh sounds playing after each other to mimic a spinning effect). Does anyone know what I may be doing wrong, or if it's possible to do this at all? I tried playing with the run to completion boxes, and it did nothing. In fact, under the circumstance, I would think that the sound should still play since it's "running to completion" when the box is checked.

Having trouble with your game? Sounds like a personal problem.

Comments

  • ADSentertainmentADSentertainment Member Posts: 397

    Anyone?

    Having trouble with your game? Sounds like a personal problem.

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited September 2014

    Hi @ADSentertainment The Run to completion checkbox is mostly for when moving to another scene, the sound will continue till its finished.

    So to your problem: there is a solution. Find out the length of your sound sample (in this case the whoosh). Now for every second of its full length, import the same sound x 4.

    Example : if your sound is 2 seconds long, you need 8 identical sounds. If say, just under 1 sec. long, 3 only would be needed.

    Obviously, a much shorter time, less duplicates needed, i.e < 1 second, 3 only would be needed.

    Here's some rules using an integer called Count and based on the sound being just under 1 second long:

    Timer: Every 0.3 seconds
    Rule: When Count < 3
    Change Attribute Count to Count + 1
    Otherwise
    Change Attribute Count to 0
    
    Rule: When Count is 1
    PlaySound YourWhooshv1
    
    Rule: When Count is 2
    PlaySound YourWhooshv2
    
    Rule: When Count is 3
    PlaySound YourWhooshv3
    

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • ADSentertainmentADSentertainment Member Posts: 397

    @gyroscope‌ Ah, I had an idea almost identical to that actually

    Having trouble with your game? Sounds like a personal problem.

Sign In or Register to comment.