It looks like you're new here. If you want to get involved, click one of these buttons!
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.
...so, 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.