Playmaker Forum

Playmaker News => General Discussion => Topic started by: HeathClose on August 25, 2017, 02:07:04 PM

Title: 3d sound in a 2d game? [SOLVED]
Post by: HeathClose on August 25, 2017, 02: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?
Title: Re: 3d sound in a 2d game?
Post by: HeathClose on August 28, 2017, 06:41:56 AM
Anyone?
Title: Re: 3d sound in a 2d game?
Post by: HeathClose on August 28, 2017, 11:19:57 AM
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?
Title: Re: 3d sound in a 2d game? [SOLVED]
Post by: HeathClose on August 28, 2017, 02: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.
Title: Re: 3d sound in a 2d game? [SOLVED]
Post by: jeanfabre on August 29, 2017, 12:32:53 AM
Hi,

 yeah, Unity vodoo I guess...

Bye,

 Jean