I have variables for Health, Maximum Health, Exp, Exp for next level.
I am making an RPG which includes levelling up. When you level you level up, your Maximum Health rises, and so does the exp for next level.
So how can I make a 'bar' for health where the maximum health rises, the bar recognises the levelling up??
Also how can I make a exp bar? So that when the exp is at the exp for next level, the bar resets.
Offline
It won't work for my game... My game includes levelling up
Offline
For an EXP bar it'd be simple, you'd just use the above sprite etc and have something along these lines:
[scratchblocks]
when gf clicked
level = 1
exp = 0
expcap = 100
forever
if <(exp) > [expcap]>
exp = 0
<(level) = (level)+[1]>
Offline
When you want to make an experience bar, and when you get enough experience to level up, here's what you do:
when gf clicked forever if <((experience)mod(however much experience you want to level up)) = [0]> change (level) by 1
Offline