Making an EXPbar through Naninovel UI

Posted: 04 Feb 2021 21:11
by noa1359

Hi there, I made a slider on the UI that will be used as the EXPbar.
I have two texts above it with the amount of EXP player currently has and the amount it needs to level up.
I already set the custom variable on those two texts to change them in Naninovel code when I need to.
How can I connect the slider that it'll update everytime those two variables will change?
I would rather do it through the custom variable code or on a Naninovel code since I'm not very good in programming,,,

Thank you!:)


Re: Making an EXPbar through Naninovel UI

Posted: 04 Feb 2021 21:53
by idaot

Hello, I would suggest using a Custom Variable Trigger component on the UI object that displays the slider and on the Float Value Changed event you can set the value of the slider.

More information here: https://naninovel.com/guide/custom-vari ... e-triggers


Re: Making an EXPbar through Naninovel UI

Posted: 05 Feb 2021 08:38
by noa1359
idaot wrote: 04 Feb 2021 21:53

Hello, I would suggest using a Custom Variable Trigger component on the UI object that displays the slider and on the Float Value Changed event you can set the value of the slider.

More information here: https://naninovel.com/guide/custom-vari ... e-triggers

Thank you so much for the help! I managed to program my EXPbar! :)
Now, I'm trying to figure out how to make it go up gradually haha