How to display an interger variable as a slider value

Hi, I’m making an options menu in version 5.0.3. I’ve added a few sliders to change the volume of different sound classes and I added text next to the sliders to display the current volume. All that works so far, but I can’t seem to set the volume value to the sliders, so when I close and then re-open the options menu, the sliders won’t be in the right place or won’t behave correctly. Below you can see how I programmed the slider, then the event construc which will call the saved volume value and the binding to the slider value. Thanks!



Hi JasonKorda,

Cast the BGMVolume variable to a float before dividing it (it’s operating on integers so the result will be zero).

1 Like

Thank you very much!!! It works now. Thank you!

1 Like