Audio Attenuation for 2.5D Sidescroller

Hey there,

I’m working on a project that is a 2.5d Sidescroller. I need to have the camera pretty far from the player character to get the right look and feel for the game, but I’d also like to use audio attenuation for different effects.

Is there a way for me to have my ‘ears’ placement on the character rather than the camera? If not, is there a way for me to limit attenuation to be a distance that is only on my sidescrolling axis, rather than 3 dimensions? Thanks

Use

2 Likes

@tyconner In this case, does it mater if I use that node or this one? What would be the different use cases?

1 Like

Unfortunately I’m not familiar enough with the difference to give you an answer for that. I’d say the listener controls both the listener location and attenuation listener location. The attenuation node would only change the location in relation to attenuation. Try out both and see what it gets you if you are curious. If you do, reply here; I’m curious to know!

2 Likes

Awesome thanks for the help.

Using the Audio Listener Override is a little strange since it wants a rotation input, so by default if I just attach to the player, shoot to the right, then turn left, I hear the impact on the left even though its coming from the right? I think since its using the orientation of the player.

I’m sure I could have it adjust for rotation, but the Audio Listener Attenuation Override I am getting the results I expect and is working well enough for me at the moment.

Maybe have a dummy actor or scene component that does not inherit rotation of the player only the location and attach to that?

Anyways, glad that got you in the right place!