Okay. I have setup a formula to calculate and increase you level every set amount of exp.
I also have a XpNeeded and a LastXpNeeded globals.
Want I want to know is, how do I set my LastXpNeeded to the last value before Xpneeded changed.
For example. I'm level 5, my XpNeeded is...lets say 500, I level up to level 6, and it becomes 600.
At this point I want XpNeeded to equal 600, and LastXPNeeded to equal 500 (that last value of Xpneeded)