I was wondering why did you use while...
proc/LevelCheck()
while(exp >= exp_next_level)
++level
exp_next_level = exp_next_level * 2 + 20
// add in stuff to gain abilities and stats here
Instead of an if statement
proc/LevelCheck()
if(exp >= exp_next_level)
++level
exp_next_level = exp_next_level * 2 + 20
// add in stuff to gain abilities and stats here
I was wondering why you did this, is it more efficient then if? I'm sorry if this is kinda of a stupid question, but I was wondering because, I had never seen it done that way before...
~~> Unknown Person