This site requires JavaScript, please enable it in your browser!
Greenfoot back
Pistolenkrebs
Pistolenkrebs wrote ...

2020/4/6

Is there any way to create a percentage in Greenfoot?

Pistolenkrebs Pistolenkrebs

2020/4/6

#
So I wanted to create a Universal Paperclip-like game, and for that I want to exponentially raise the prices of certain objects/upgrades. Is there any way to do so?
danpost danpost

2020/4/6

#
Pistolenkrebs wrote...
So I wanted to create a Universal Paperclip-like game, and for that I want to exponentially raise the prices of certain objects/upgrades. Is there any way to do so?
Just raise the price by multiplying by one more than the percentage required. That is, to increase by five percent, multiply by 1.05 (or multiply by 105/100).
You need to login to post a reply.