How does procedural level up works in games?
I see games that has infinite level up, what is the best math equation for leveling up in games in terms of xp and enemies damage?
Thanks in advance.
Answer by Creatom_Games · Dec 30, 2017 at 07:43 PM
I don't have any exact favorite opinion, but I do use a formula that seems to work with xp and infinite level up. In terms of xp, I usually start by having the main character get around 100 xp to level up. When the person levels up, I multiply the threshold by 2(now 20 at lvl 2), and, every level up, I increase the amount the threshold is increased(at level 1->2) by one. Example: At level one: -100 xp required to level up, multiplier at 2. At level two: -200 xp required to level up, multiplier at 3. At level three: -600 xp required to level up, multiplier at 4. and etc.
Seems like a good formula, but just a question: doesn't that scale up really quickly?
At level 10 you'd need (10!*100) = 362880000 xp to level up, and at level 20: (20!*100) = 2.432902e+20.
Or am I missing something lol? ;p
Found new way: just double xp per level: at level one 100, at level 2 200, at level three 400, and so on
Your answer
![](https://koobas.hobune.stream/wayback/20220612145347im_/https://answers.unity.com/themes/thub/images/avi.jpg)