title: How to increment score after certain time period? XNA
body: <p>A bit stuck on incrementing the player's score after 5 seconds. Eventually i would like to be able to use the same logic to increment the score by 'x' amount after all different time periods. At the moment, the score is being incremented by 10 but 60 times a second (due to the update method being called 60 times a second). This means the score ends up being 560 instead of just 10.</p>
  
  <p>I was thinking of trying to use variables such as <code>isPreviousScoreChanged</code> and <code>isCurrentScoreChanged</code>, like when detecting if a button has been pressed and released, however this isn't working too well either.</p>
  
  <p>I am using the <code>Stopwatch</code> class to keep track of the amount of seconds gone by since the start of the game.</p>
  
  <p>the code is pretty much:</p>
  
  <pre><code>if (Stopwatch.ElapsedTicks == 5)
  {
      playerScore += 10;
  }
  </code></pre>
  
  <p>[I know it's possible to paste code in here but there isn't much to paste and it's quite simple what i've done so far]</p>
  
  <p>thanks v much for reading everyone :-)</p>