Music volume... increase and decrease
airone747
Member, PRO Posts: 13
hi guys, sorry for my English.
I have a problem with music volume (not sound).
I inserted in my scene one slider and I inserted two behaviors:
1) when touch is pressed and the self position x is (for example) 536 ... the device/audio/music is 1
2) when touch is pressed and the self position x is (for example) 236 ... the device/audio/music is 0
It's works... the music on and off, but I would like a different thing: I would like the decrease and increase of the music and not only on or off.
How do I do it?
Thanks for all.
Chiara
Comments
Demo file attached:
Drag the slider left and right.
thanks but this demo is with a sound and not with music.
I would like put my music on background in the first scene so I can hear it in all the scenes.
If I use a sound (and not music) ... I can hear it only in the scene where I have put it
I would like one slider like your slider of this example but for the music or I would like know like insert a sound for all the scenes
Whoops, new file attached.
Thanks ... now I try it
it is works!!!Fantastic!Thanksssssss
Actually, in hindsight, you can make it a little more efficient by dragging the second constrain into the first rule, so that the volume is only altered when the slider is being dragged, rather than constantly checking for volume changes . . . like this:
with the first your demo all it works correctly.
With the second instead the volume is strange... when I decrease it ... it first increase and then it decrease... I don't know why
If you are looking to resolve an issue you'd need to supply as much information as you think might be useful, your starting position, your starting volume, how much it increases by, for how long it increases before decreasing . . . and so on.