Distance between two entities decide volume of a sound.

Started by
9 comments, last by Ludus 11 years, 1 month ago

I noticed that I cant use any of the code in this thread because once the sound is playing, you cant change the volume(you have to stop it first).

What you need to do is change the volume/panning of the channel the sound is playing on, rather than just setting it when it initially plays. This will require you to implement a method of keeping track of which channel a sound is playing on.

This topic is closed to new replies.

Advertisement