Can someone PM me (ping pong)

I'm having a hard time using noLoop and loop My code is supposed to create a ping pong game and everytime a player wins, the game is suppose to pause and if a user presses a key the game can continue


  • No, that's not the way this forum works.

    Questions and answers are public, that way anyone can read and benefit from them.

  • I wouldn't use loop() and noLoop() in this situation. I would instead have a "paused" state.

  •, paused would be a boolean:

    ...and the contents of draw (for example) would be executed if(!paused)

    ...and keyPressed() contain a check to set paused=false.

Sign In or Register to comment.