• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

GML Visual Power-up for a clicker game not working as it suposed to be

D

danielss8787

Guest
Hello, folks!
Really noob question:

I'm creating a clicker game that has a power up that double your coins per second. So, I have a piece code that makes you gain twice coins per second, if the boolean variable called "bonus_is_active", is true. I set this variable to false by default. I write a piece of code that basically set this variable to true when I click on the Gift box, and put this piece of code in the step event. The problem is that, doubles my coins EVERY STEP, and not only one time.

Thanks in advance,you guys are amazing!
 
Top