I have three variables to account for I'm having problem getting bar to always be the right size depending on the current exp value
the bar itself is 170 pixel wide / initial value set to 0
variable 1 bar.initialWidth = 0
exp = 0
then 5 global values
lvl1 = 240
lvl2 - 480
I'm trying to have that bar grow with his exp and max out filling the bar to 170 pixels when the lvl1 exp needed is reached and lvl2 exp is reached ext...
i have tried something I used on an old game for health
(Self.InitialWidth + (Math_Boy.exp-Math_Boy.MaxExp)*(Self.InitialWidth/Math_Boy.maxExp))
but that didn't work granted I changed the way the MaxExp was working but even setting the player to hold both the MaxExp and the exp value didn't work in this case... can't figure out why?