title: How can i get the right score?
body: <p>I tried this to get the score in my game and I tried this:</p>
  
  <pre><code>foreach (stella stella in stelle)
              if (stella.rettangolo.Intersects(giocatore.rect))
              {
  
                  score=score+10;
  
              }
  </code></pre>
  
  <p>It functions but not well because  if I stay a long time near the star the score continues to inrement even if it is not visible. how can i fix it?</p>