I wanted to find a way to code Sound effects so that
the volume of a sound is louder the closer one
is to the object which is emitting the sound.
I am using .ogg as the primary sound format.
Lets say for example a cricket is chirping in the game,
and we wanted the sound to be audible as the player
approaches the source of the sound.
would we call an expression just before the sound is called
which performs a calculation of distance and sets
sample volume based on a ratio of that distance?
Again I may need to be reminded of how to code
relational distance between two models.
Any Ideas?
