When sliding the slider it sets the 'volume' global variable to
(45 - ((45 / volumeBar.Width) * (sliderVolume.X - volumeBar.X))) * -1
how do i set the slider to the right position on start of layout from the volume variable?
if the value is a percentage of 100
clickfusion the variable is set from -45 to 0 as it's DB level
Develop games in your browser. Powerful, performant & highly capable.
the initial value does not have to be as db level
I showed you how to make the initial level as a percentage