I want to find a way to make it very easy for the player at early
levels (let's say until level 15~), and then slowly harder. I'm not
sure how to change the formula or if it's even possible! Hope you can
There are too many ways to approach this, I don't think anyone can give a concrete answer without know more about your game, but here are some ideas:
- Make it "easy" for someone to gain levels is subjective. Depending on the game, the dungeons (for example) that are meant for players level 1-15 could have monsters that give a lot of experience, while the rest of them give less experience (For example).
- Your formula has some magic numbers, I'm not sure I can see the pattern behind them, but you can treat your formula like an interpolation. In linear interpolation, you go from A to B in equal steps, but you can use an exponential interpolation, that starts slow, and then goes faster. An example formula is
x*x and looks like this
total_experience = experience;
x = your_formula_for_exp_to_next_level;
experience_to_level = x*x;
This will take your already existing formula, and tweak it in such a way that all values will now need less experience in the beginning, and increasingly more at the end. To increase the curve and make it so that it needs less and less experience in early levels, just keep multiplying that by
For example, the interpolation
x*x*x looks like this:
Unfortunately I can't give a more concrete answer than this, because each game has multiple ways to tweak difficulty, by giving more monster to the player, awarding more experience, giving more equipment etc etc. Hope this can help to get you started.