We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I'm supposed to be writing a code that keeps track of how many mouse clicks you make, and something is supposed to keep happening the more you click the mouse. I really have no idea how to keep track of mouse clicks, so any help would really be appreciated. Thanks!
Answers
Create a "global" variable. Then increment it inside mousePressed().
http://processing.org/reference/mousePressed_.html
what would be an example of a global variable?
The reference link above already got 1! It's just a variable declared outside any functions! So it's accessed everywhere!
okay thanks!