Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I made a slide bar myself that go from 0 to 100 for controlling the volume of audio, but I see that db goes from -30 to 0... I'm shure there's a way of doing this conversion, but I'm not shure how, anyone can help?
Thanks in advance!!
Develop games in your browser. Powerful, performant & highly capable.
The easiest way is to just let the slider do the work for you. Just use your positive reference point (30) and set the slider's Maximum to that. Then juggle the values around to get the negative result.
The volume can go much lower than -30, but it's up to you where you want to stop. You can still here sound at -60, depending on the source.
Hey blackhornet , many thanks man!
I'm wondering what could I use for having a scale from 0 to 100 instead of 0 to 30. Any guess?
OK, but you won't actually here a 1% change, so it's a bit pointless, however, here it is.
Cool, you got it!
Thank you blackhornet , I wish you all the best! Be blessed.
For you that may need, the formula is: