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?
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.