playMaker

Author Topic: Multiple Audio Play [SOLVED]  (Read 536 times)

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 352
    • View Profile
Multiple Audio Play [SOLVED]
« on: June 29, 2016, 12:13:45 AM »
Hi

I am using the audio play and have all my audio setup on one game object so i can manage them in one place. I thought it was ok to do this but found that i need to use audio stop for one of them. But i cant target one audio to stop, instead of all of them stop. I get why as they are all on one gameobject, but have i got to have one game object per audio file? is that the best way?

Nick
« Last Edit: June 29, 2016, 12:51:20 AM by coxy17 »

600

  • Beta Group
  • Hero Member
  • *
  • Posts: 579
    • View Profile
    • Car and Traffic Playmaker assets
Re: Multiple Audio Play
« Reply #1 on: June 29, 2016, 12:42:20 AM »
I use a group of empty game objects for different sounds, one audio source on each. Some are playing various sounds that match settings like looping/once/distance.

coxy17

  • Beta Group
  • Sr. Member
  • *
  • Posts: 352
    • View Profile
Re: Multiple Audio Play
« Reply #2 on: June 29, 2016, 12:50:49 AM »
ok thanks, ill do this then, i have never used audio before and assumed that i could have them all on one gameobject.

Thanks