Ok let me explain i a incremental game that when i press a button it does the folowing.
set current price to -floor(base price * (level ^ 1.o7))
-Add 1 to level
Now i want to make buttons to do it 10x, 25x and 100x if i do just *100 for example i get the wrong value ofcourse . I just can't wrap my head around the good thing to do here.
Also i need the to check if you have enough money to buy it so if
-current money - cost price => 0 you can buy.
The thing i tried is make a global variable called multiplier.
Base value 1 when i press the button 10x set it to 10 and so on.
Then use the multiplier in the code is just tried a lot of thing with the wrong outcome can some please help me in the right direction.