All you have to do is set the width of the bar to a ratio based on the maximum width of the bar and the current/maximum exp of the player...
So say your exp is 100/1000. set percent = 100/1000
that comes out to .1
so then set the dialog size to (385*.1,height)
This will make the bar be 10% of its full width, therefore representing you have 10% of the required XP.
Hopefully this helped, kind of short on time so I simpled it up pretty amazingly. Lol.
Skoite Regular ShmoeHi there, i need help to come up with a formula for my xp bar made from dialogs. Not the standard one but a custom one using images. The maximum width of it is 385. I've been twisting and turning just to come to the conclusion i suck at math. Please help!