Processing Forum
I'm trying to make a scoring system where there's a score for each team and a timer which starts from when the button is pressed (highlighted in the code with 'timer button' at line 30, as a comment). I have two problems at the moment: the plus buttons are only supposed to plus one to the score variables if the mouse is clicked in the rectangle. However, this doesn't happen (it does but something else also does), when you click outside the rectangle and then drag the mouse into it, it registers as a mouse click. How do I stop this? This is labelled at line 66 with //button clicked.