Could this be expanded to character to character... so if you have multiple characters in the room, say a scrolling room, and the character is walking or animating outside the viewport, as the viewport gets closer to the character, or even as the PC gets closer to the character, the sound gets louder...
Currently I have to do a bunch of scripting to change the volume of a character chopping wood in a certain scene. This feature would get rid of the need of all that scripting. Maybe something like camera_is_ear and player_is_ear for each character... so you could set the pc as camera_is_ear so the farther away the quieter his view sounds, and all other characters as player_is_ear so their sounds get louder as the PC gets closer to them.
Just a thought....
On second thought why not have a combonation of both... for instance an animating character with a sound is in a walkable area at 50% height so his sound affect is at 50% volume, as long as the character is within the current viewport, the farther the character is away from the viewport edge the volume is slowly decreased from there....
thinking about it... it may take some coding to check the viewport and character position and all that jazz to make it work properly, but if anyone can do it... its CJ!!!!!!one!11one!!1
Currently I have to do a bunch of scripting to change the volume of a character chopping wood in a certain scene. This feature would get rid of the need of all that scripting. Maybe something like camera_is_ear and player_is_ear for each character... so you could set the pc as camera_is_ear so the farther away the quieter his view sounds, and all other characters as player_is_ear so their sounds get louder as the PC gets closer to them.
Just a thought....
On second thought why not have a combonation of both... for instance an animating character with a sound is in a walkable area at 50% height so his sound affect is at 50% volume, as long as the character is within the current viewport, the farther the character is away from the viewport edge the volume is slowly decreased from there....
thinking about it... it may take some coding to check the viewport and character position and all that jazz to make it work properly, but if anyone can do it... its CJ!!!!!!one!11one!!1