title: Score Counter Loop on Mouse Click in PyGame
body: <p>I am writing a test game with PyGame and have a turn/phase based system (Like in Yu-Gi-Oh!) however the problem I am having is when I want to increase the Turn Counter (on the Draw Phases) it keeps incrementing it indefinitely until I press the mouse click again to release the mouse hold. Is there a way to break the incrementing and go straight to the next phase right after it increments once?
  I assume the problem has to do with the game loop itself refreshing so rapidly. Maybe I could freeze the game loop? Another alternative would be to automatically (not by mouse click) shift from turn to turn but I would still have to press a button to shift into the next phase. Any Ideas? Could I possibly increment this outside of the game loop?</p>
  <pre><code>#The Game Phases (outside of the game loop): 
  phases = &quot;Coin Flip&quot;,&quot;Your Draw Phase&quot;, &quot;Your Standby Phase&quot;, &quot;Your Main Phase 1&quot;, &quot;Your Battle Phase&quot;, &quot;Your Main Phase 2&quot;, &quot;Your End Phase&quot;, &quot;Their Draw Phase&quot;, &quot;Their Standby Phase&quot;, &quot;Their Main Phase 1&quot;, &quot;Their Battle Phase&quot;, &quot;Their Main Phase 2&quot;, &quot;Their End Phase&quot; #enemy phases
  
  
  #Code Inside the game loop: 
          #If phase = A Draw Phase then the Turn Counter increments.
          if phasecounter == 1: 
              turncounter += 1
  
          elif phasecounter == 7:
              turncounter += 1
  
          #A Mouse Click that can will change the Phase on the Screen (displayed by Text). 
          if event.type == pygame.MOUSEBUTTONDOWN:
                  phasecounter += 1
  
              
              
         #Loops the Phases. 
          if phasecounter &gt; 12: 
                      phasecounter = 1
  
          currentphase = phases[phasecounter]
  
  </code></pre>