godot version 4.1.1
Currently making an office defense game simliar to that of something like fthe five nights at freddy’s series, and i have an ambient type sound effect thats intended to pan around the stereo in relation to one of the characters moving and so even though i have the audio channel linked to the correct bus, and i have that audio effect value as a variable (BallroomBus = AudioServer.get_bus_effect(1,0)) the panning never changes ingame even though when changing it manually in the audio menu it takes effect. Wondering if its something with the audio type or just if i made an oopsie coding wise because even after a few hours of messing around i havent solved it.
I’m not sure why that’s not working, but have you considered AudioStreamPlayer2D
or AudioStreamPlayer3D
?
1 Like
changed it to audio 2d and still the pan only takes affect when i set it manually and never updates in the game even after messing with the node position and panning strength
I think with the AudioStreamPlayer2D
if you make it a child node of the object making the sound it ought to work; it should drive panning off the node position.
1 Like
while i still cant get it to work through the audio effect this made me realize im a dummy and can just move the node with code instead and pan that way, so thanks for the help
It’s hard to tell from screenshots, are you using AudioListener
?
AudioListener2D
and AudioListener3D
used for relative positioning of audio source.