Making an EXPbar through Naninovel UI

All about user interface, be it customizing built-in UIs or adding new ones.
Post Reply
noa1359
Posts: 8
Joined: 17 Jan 2021 10:20

Making an EXPbar through Naninovel UI

Post 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!:)

idaot
support
Posts: 275
Joined: 01 Aug 2020 08:25

Re: Making an EXPbar through Naninovel UI

Post 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

noa1359
Posts: 8
Joined: 17 Jan 2021 10:20

Re: Making an EXPbar through Naninovel UI

Post 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

Post Reply