Godot Version
4.3
Question
Why does my AudioStreamPlayer2D background music get quieter the farther I get from my spawn?
4.3
Why does my AudioStreamPlayer2D background music get quieter the farther I get from my spawn?
Hi,
Try setting the attenuation property to 0 and max distance to infinity.
By default, AudioStreamPlayer2D has a distance attenuation, which would explain the behaviour you’re describing.
AudioStreamPlayer2D has a 2D position, whereas AudioStreamPlayer does not and plays audio regardless of position.
For music, you probably don’t want it to be positional (unless it’s supposed to be coming from a source in the scene, like a speaker or a a radio or something), so you probably just want AudioStreamPlayer
(not 2D or 3D).