I confuse how to put a function to a mouse click so if i click the mouse it will start produce the ball and checking the collision again. I tried timer function but it didnt work. Thank you so much before it.
here's my code sorry for the comment, just ignore it