To count clicks, I know that I need to add text clicks++; I saw that in the solutions example. How do you create this using blocks? I can only show students how to type this in with text.
You will have to extend the clicks++ into clicks = clicks + 1.
That was a mistake made in the exemplar. It was supposed to say
clicks = clicks + 1 so that it could be translated in blocks. This mistake has been fixed in the exemplar though, and the updated version of it should be going out either later today or in the next couple of days. Sorry for the confusion!
I tried doing that but it did not work. Is there another specific way of doing the code? Thank you.
Can you share your code using the “share” button in the top left hand corner? I just checked the exemplar and it works, so I want to check your code to help - thanks!
Hi, I just tried your code and it is working for me. Every time I clicked the screen, the number went up. What do you see when you run the program?