Increase price by level
Hi. I want to create a math function that increase the prive of a building. The player initialy have 0 buildings and to buy 1 there is set a price. I want that price to increase when player buy a building.Also, the player gain X coins p/sec and when he buy a building he gain X+buldingNumbers coins p/sec and so go on. I used something like that:
price += price/4;
The problem is that in first levels the price looks legit, but after that it becomes too expensive. Any sugestion? Thanks is advance :)
Comment
What is the price and what is the expected result?
lest say the price is 100, in this case you would then get 100, 125, 156.25, 195.31.. and so on. Would be great if you could elaborate a bit more, and possibly paste the code here.