Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines
(+1)

If its Godot are you using AudioStreamPlayer2D or AudioStreamPlayer? Because with 2d one it might be located somewhere to the left of screen. If its just AudiostreamPlayer then I dont know since it should have no source direction

Ah, that would be it! I used AudioStreamPlayer2D. I will be sure to use the proper AudioStreamPlayer in the future. Thanks so much! I think I got so used to picking 2D nodes that when I saw the 2D, I thought, "That must be specifically for 2D games." haha

The other audio problem I couldn't figure out was how to only have one copy of a sound play even when multiple instances were calling it. I may go back and clean up the code a bunch so I can practice knowing how to solve these issues in the future.

(+1)

Yeah Godot has so many nodes it takes a while to learn what all of them do. I haven't yet tried half of them.

About the other problem I don't know if there is some "proper" solution for it but I always use "if !node.playing()" to check if its already playing before calling it.

Oh thanks! That's a great idea. I was thinking of creating some kind of separate audio node on top of all the levels to handle all sound, which might also help me do seamless background music? Dunno. I'm still learning!