Persistent problem: AudioStreamPlayer2d volume based off distance to (0,0) not to the screen center

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By indigo

I have an AudioStreamPlayer2D on a moving node and my player character with a Camera2D attached.

For some reason, the AudioStreamPlayer’s volume seems to be based off how close the node is to the global origin, not to the screen center as determined by the Camera2D.

Is there some sort of camera setting that needs to be changed to make this work correctly (e.g., have it be louder when the sound is closer to the player?