Added wizard shop item
Someone gave me the idea to add a button that makes it so you can increase the minimum damage to enemys,
bug 1:
I made the buy function and was finished with the actual buying mechanic but then i realized that every time you upgrade it doesn't just increase the min it also increases the max like it was pushing the end and start a few inches so i made it so every time you buy it it minuses 1 off the max to compensate for the 1 added to the max so it was fixed
Bug 2:
I was finishing the mechanic of making it so if you don't have enough to buy it the button turns a little darker but the way i coded it it made it so if you went from > 20 to < 10 coins then it wouldn't turn the min + 1 button darker because it would cancel out the color change so i moved it after so it wouldn't be controlled by the if statement that made the buttons turn darker if it was below the price of 10 and instead under 20 and fixed it
That was everything so bye bye.
Files
A Wizard vs The Forest
Wizard game
More posts
- Added max min damage meter and fixed damage bugs+Nov 16, 2021
Leave a comment
Log in with itch.io to leave a comment.