I’m making a clicker game. I need help
Declare your score tracking variable.
var score =0;
Then, inside the button press code, increase the
value of score.
Also, you may want to look at the button and interactive text tutorial video!
The general idea is
- Create a button that can be clicked
- Create a variable in the project that we can store a number in.
- Increase that number everytime a click happens!
After we do this, we can use those points to create a purchasing system, prizes, etc… Let us know if you’d like help at that step!
Thanks for the help!