# Change score by x, but it keeps going

**URL:** <https://forum.makecode.com/t/change-score-by-x-but-it-keeps-going/17265>\
**Category:** Help\
**Created:** [January 6, 2023, 6:26pm UTC](https://forum.makecode.com/t/change-score-by-x-but-it-keeps-going/17265 "2023-01-06T18:26:52Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![BruceSchwa](https://avatars.discourse-cdn.com/v4/letter/b/9dc877/32.png) [@BruceSchwa](https://forum.makecode.com/u/BruceSchwa)\
**Post date:** [January 6, 2023, 6:26pm UTC](https://forum.makecode.com/t/change-score-by-x-but-it-keeps-going/17265/1 "2023-01-06T18:26:52Z")

</div>

I have 2 student projects where they want their game to change by 1; however, it either changes by something like 14, 19 or it just keeps adding points. Here are the 2 programs

 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9fe9503103e7df755e2beec5ae7bf272a55b61a2.png)  
 ![Screen Shot 2023-01-05 at 12.02.15 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/780e1fd3d88683be846a5904acadda59c246b922.png)

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [January 10, 2023, 12:54am UTC](https://forum.makecode.com/t/change-score-by-x-but-it-keeps-going/17265/2 "2023-01-10T00:54:42Z")

</div>

I can see that they are using ‘On sprite of kind overlaps at location’- this means that for every time the code runs it will add again. So if the player sprite was overlapping the other sprite for 14 code runs, it would add 14 points. You could fix this by moving the player out of the way of the thing they are overlapping after the first point is added to insure they wont accidentally overlap again!
