Right now I'm just playing wilderness ambiance noises in random X and Y coordinates in the whole viewport. I however would like to make the effect more advanced and get these sounds to only play in a distant radius around the player and ignore the close radius because the player is never going to see these creatures making the noises they make and it's weird when one plays right next to the player because of this.
Add a line of sight behaviour with the radius you want, and play sounds only if the player doesn't have line of sight?
Develop games in your browser. Powerful, performant & highly capable.
I don't think that'd suit my purposes but I must commend you because you got me thinking that my best bet would probably be to make an object set along sine and cosine around the player with a minimal value to the radius of the circle it's making and play the sounds from it's X and Y positions.
Yep, or just use a circular invisible sprite pinned to the player and only play sounds if it's not overlapping the origin of the sound. But I'm lazy, your solution sounds more impressive
Yeah the method I wrote above works pretty good. I had to increase the volume of my wildlife ambiance but it was worth the extra effort involved.
And hey, I say to each his own, every game is a case by case basis. :p