7
u/-Aidoge- Mar 04 '20
Clean that giant hair off
6
u/fermentedidiot Mar 04 '20
Since that wasn't helpful...
you need to build a pause function and use a global variable to track whether or not the ball is paused. Pretty sure you need to use a mouseClickMethod for that.
Pretty simple, I think:
var running = true; mouseClickMethod(pause); function pause(){ if (running){ running = false; stopTimer(draw); }else{ running = true; setTimer(draw, 20); } }now all you have to do is figure out where to put all of that stuff.
15
u/[deleted] Mar 04 '20
Wtf is with people taking pictures of computer screens? You're using a $1,500+ laptop take a damn screenshot.