###Mouse Control (one example - mouse click) while ball1.y> 0.: ##################### ##Use a scene.mouse.clicked event inside the main loop if scene.mouse.clicked: ####put the code you want to run on mouse click here ### Watch the alignment! ball1.pos = ball1.pos + ball1.velocity*dt ball1.velocity = ball1.velocity+ball1.acceleration*dt ball2.pos = ball2.pos + ball2.velocity*dt ball2.velocity = ball2.velocity+ball2.acceleration*dt