So I've added music to my game, and I'm tryin to do a volume control. For clarity purposes, this is what I'm trying to do:
https://gyazo.com/a08053bfebd6663d6f73acd7fd871a8d
I want the music volume to go up or down as you drag the bar. I know in the interface there's a section labeled "Command to run when value has changed". But I'm not sure how to go about coding the command to do what I'm trying to do. I don't want the sound file that's already playing to restart if possible. In other words, I need the value of the adjustable bar to correspond with music_volume
The variables I have are:
music_volume --- controls the volume of sounds
music --- the sound file playing to the player
ID:2180243
Dec 2 2016, 8:52 pm
|
|