Hey all,
I've lurked but this is my first post. Upgrading has always been my favorite but now that I've mostly finished a mobile game, I'm not sure how to create a function that will scale cost efficiently.
For example, you might have a gun that costs 500. Then to upgrade, 2000. Another upgrade could set you back 8000. Is there a reason to this rhyme? My simple solution would be this. You are upgrading from level 5 to level 6. We will call the level n.
(n*1000)2
Therefore, the upgrade cost would be 36000 while the next one would be 49000. But I don't like that.
Does anyone have anything better? Maybe an asymptotic doohickey?