Forum rules - please read before posting.

Multiple sounds at the same time + Loopable?

Hi, I'm wondering if it's possible for several sounds to be loopable and play at the same time? 
Basically it's supposed to go; the player has a choice of 8 sounds, which are basically stems from music, and can select which ones are playing. 
The problem is, if I select the normal AC "Play Sound" option, then only one sound can play at a time. It loops, but I can't play several of them at the same time as it will only play one. 
The same problem for "Play Music"
For "Play one-shot" it plays the several sounds on top of each other like it's supposed to, but it doesn't loop.

So what should I do? Do I need a custom script somewhere? Thank you :)

Comments

  • edited September 2017
    Just use different audio sources. One audio source can only play one clip at a time, but you can play several of them at the same time if you have multiple AudioSources. AC's Play Music actions are tied to a single audiosource, I think, so that's why you can only play one track a time (which makes sense actually, since you can use other audio sources for environmental noises). Anyway, all you got to do is setup some empty objects in your scene, slap an audiosource, then configure them to loop but to not play on awake. Then you can control  them from an actionlist (the Play sound action has a slot for the audiosource you want to control). If you don't need to switch tracks you can also just slot the desired audio clip directly on the Audiosource and just play or stop it as need it.

    If you've never used Audiosources directly I advice you to check Unity's 4 minute tutorial so you can understand the settings in them.
  • edited September 2017
    Ohh jeez it was as simple as that. I never even twigged that an audio source could only play a clip one at a time. It works now, thank you :)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.