Question Clicker Game Upgrades in C# Visual Studio

KasperCFW

New Member
Messages
1
Reaction score
0
Points
1
I Want to make a clicker game and revamp it but when i try to code in upgrades you have to have the exact amount it costs how do i fix this? also i wanna make it so it adds a random number per upgrade buy help please?
 

zommer0532

Veteran
Messages
171
Reaction score
66
Points
813
Check the player balance and the amount to upgrade. If Balance is higher or equal to the upgrade cost, take the upgrade amount away from the player Balance.
EDIT: Oh exact amount. thats dumb but just check if Balance = Upgrade cost
 
Top