Hi,
I am trying to implement a little game built on finding the right frequency on a radio. I will have two sounds play as the user is near the radio, one for static and one for a hidden message. The user needs to find the right frequency by turning the dial on the radio to reveal the hidden message. I am controlling the dial with the mouse wheel which changes the frequency. Basically, I would like to make the volume of one sound out of a few to be tied to the value I have for frequency which would let me wheel the volume up and down as the sound plays.
Attached is what I have, it sets the volume to my frequency value but only once before the sound plays, doesn’t let me adjust when the sound is playing.
My plan B is to have various Sound Mix Modifiers for different volume levels that would correspond with varying frequency difference (between goal freq and user’s freq) ranges. I would use those modifiers to create the perception of a certain sound getting louder over the static as the user nears closer to the goal frequency.
example:
fdiff: 30-40 → volume :0.2
fdiff: 20-30 → volume :0.4
fdiff: 10-20 → volume :0.6
Thanks in advance,
different approaches are welcome just as well.