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?
I moved it from the camera to the player and now 3d audio functions as expected, thank you. 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 stick around before the player goes back in the pool so there isn’t silence during the death particle lingering… but it works. Thank you again.
Super simple solution for the despawned listener issue too. I just added a listener to the death particle, and when the new player spawns from the pool, I disable it on the particle, and when the particle despairs and goes back in the pool, I reenable it so it’s ready to go the next time it spawns.