playMaker

Author Topic: 3d sound in a 2d game? [SOLVED]  (Read 3919 times)

HeathClose

  • Full Member
  • ***
  • Posts: 226
3d sound in a 2d game? [SOLVED]
« on: August 25, 2017, 05:07:04 PM »
I'm making a 2d game and I want certain things in the room to get louder as you get closer, but using 3d sound doesn't seem to work.

I've done some googling and found everyone saying set spatial to 3d, change rolloff to linear, and set a min max... but those steps don't seem to be working in my 2d game... the volume never changes (except for messing with the min, but it's still constant no matter where in the game you are)

anyone have any experience with 3d sound in 2d games?
« Last Edit: August 28, 2017, 05:43:26 PM by HeathClose »

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: 3d sound in a 2d game?
« Reply #1 on: August 28, 2017, 09:41:56 AM »
Anyone?

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: 3d sound in a 2d game?
« Reply #2 on: August 28, 2017, 02:19:57 PM »
Ok... What about a way to constantly calculate the distance from the audio listener on the camera to all the audio sources and change the volume accordingly?

HeathClose

  • Full Member
  • ***
  • Posts: 226
Re: 3d sound in a 2d game? [SOLVED]
« Reply #3 on: August 28, 2017, 05:45:03 PM »
Someone on the unity forums said to move my audio listener from the camera to the player.  Now 3d sounds works... I don't understand why it wouldn't work on the camera... and I'll have to rig up a way for the listener to stay before putting the player back in the pool... but it works.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15594
  • Official Playmaker Support
Re: 3d sound in a 2d game? [SOLVED]
« Reply #4 on: August 29, 2017, 03:32:53 AM »
Hi,

 yeah, Unity vodoo I guess...

Bye,

 Jean