Ay bois, this time, i'm making an game that you can level up, yay. But, i don't know, how to make my exp bar scales with the Xp.
I already maked an advanced xp bar that will lerp with the amount of the xp. But, the width of the Xp bar is 610, and, i need it to scale to the Xp. Like, if the xp needed to level up is 47500, they will scale it to when the player has the 47500 of Xp, the bar width will be his maximum, that is 610.
I'm using this code to do the lerp, and, i tried changing some values but i don't know how to scale this thing, if you know how to scale it, please tell me!
Code: imgur.com/a/05cllg6