So I'm coding a clicker (like cookie clicker), but it doesn't increment by seconds, it only increments with a click.
You can buy evolutions for your click, like buying the first adds one to your click. What I do right now for the game to not end too soon is that when you buy an evolution, the price of the evolution increases by 50% of the initial price (so if the initial price is ten, and you bought 5 evolutions, the price for the 6th will be 35).
I'm trying to find a better way to increment the prices because I feel like it could be better. I could try to increment by 25% (or less) of the new price, but I feel like that isn't a great way either.
You can exponentially increment the price (ex. x1.25 everytime)
So this would give a sequence of prices like follow (assuming the base price is 10): 10, 10x1.25, 10x1.25x1.25, 10x1.25x1.25x1.25, etc.
=> 10, 12.5, 15.625, 19.53...
(Obviously you should round these values so the actual price would be something like 10, 13, 16, 20, etc..)
You can change the ratio if you want the price to grow faster