by skydereign » Sun Dec 09, 2012 9:03 pm
You need to do three things. Have a mouse button down event, the draw event (or a repeating timer), and a mouse up event. In the mouse down event, you increase your variable, and set another variable to on (or create a repeating timer). That way in your draw (or timer) you can increase the variable as you want. Then in the mouse up event, you set the variable to off (or destroy the variable). The reason I mention the timer in parenthesis is it doesn't do very well with pausing.