I have posted screenshots + GIF below. But basically, I have countEXP global variable, and it is set to 0 when the player levels up.
I have got when exp=>100, it'll level up to 2. I have done it all the way to level 3, and when at level 3, the countEXP starts from 0 and increases past 100, at which point it goes back to level 2.
Is there a way around this?
The events for the making of the exp bar:
gyazo.com/8b843efecc858b8164f19db7177a2acf
The events for the leveling up:
gyazo.com/b18c6700b73b8dee6d353c20fa726e1c
And the GIF of the problem:
gyazo.com/08f06b3b372c528797b691d4fb991035
(As you can see, level 2 to level 3 works fine. But of course because the countEXP gets set to 0 at start of new level(level3), it counts in 15 from 0, until it becomes =>100, which turns level 3 back to level 2.
Thanks in advance.