# Issue with the score system - Im newbie

**URL:** <https://forum.makecode.com/t/issue-with-the-score-system-im-newbie/31482>\
**Category:** Arcade\
**Tags:** game, make, extension\
**Created:** [November 2, 2024, 11:20pm UTC](https://forum.makecode.com/t/issue-with-the-score-system-im-newbie/31482 "2024-11-02T23:20:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![tam](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@tam](https://forum.makecode.com/u/tam)\
**Post date:** [November 2, 2024, 11:20pm UTC](https://forum.makecode.com/t/issue-with-the-score-system-im-newbie/31482/1 "2024-11-02T23:20:42Z")

</div>

I’m working on my game but then I check the score system and I don’t know how to fix the spam when touch the nuclear because my plan was make the nuclear change to the wind turbine when press B and the player can get 1 point only from changing and can’t get or spam it anymore.

> **[Project #2](https://arcade.makecode.com/S03106-60010-01505-35673)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

I didn’t really finish it but please help me out, I really appreciated the comment you guys give me

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [November 4, 2024, 8:31am UTC](https://forum.makecode.com/t/issue-with-the-score-system-im-newbie/31482/2 "2024-11-04T08:31:59Z")

</div>

Alrighty, I see your problem  
I made a simulation involving an example of fixing your problem.

> **[Simulation-Fixing-Sprites](https://arcade.makecode.com/51742-35801-96196-63056)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

It uses functions and the sprite data extension, hope you learn from it!

---

<div class="post-metadata">

**Author:** ![Bobby5020](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bobby5020/32/16554_2.png) [@Bobby5020](https://forum.makecode.com/u/Bobby5020)\
**Post date:** [November 4, 2024, 8:32am UTC](https://forum.makecode.com/t/issue-with-the-score-system-im-newbie/31482/3 "2024-11-04T08:32:16Z")

</div>

I went through your code, and (I think) fixed your problem. I added a new variable and some new blocks, and put comments on them so you know what’s going on.

> **Notes**
>
> - My new code may not work with more than one nuclear plant in the game. I only saw one, but if you plan on adding more to the level, reply and I (or someone else) can try to help you again.
> 
> - Great game, I can’t wait to play it when it’s finished.

> **[Project #2 help](https://arcade.makecode.com/59605-62642-54575-70370)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Archer\_Bright](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/archer_bright/32/32896_2.png) [@Archer\_Bright](https://forum.makecode.com/u/Archer_Bright)\
**Post date:** [November 4, 2024, 8:35am UTC](https://forum.makecode.com/t/issue-with-the-score-system-im-newbie/31482/4 "2024-11-04T08:35:07Z")

</div>

Hello!  
Welcome to the Forum.  
You might want to wait for however many seconds after a score is given, meaning they cannot spam it.  
If you want me to, I can fix the issue

---

<div class="post-metadata">

**Author:** ![tam](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@tam](https://forum.makecode.com/u/tam)\
**Post date:** [November 5, 2024, 5:44pm UTC](https://forum.makecode.com/t/issue-with-the-score-system-im-newbie/31482/5 "2024-11-05T17:44:58Z")

</div>

I appreciate you, thank you so much!

---

<div class="post-metadata">

**Author:** ![tam](https://avatars.discourse-cdn.com/v4/letter/t/ba9def/32.png) [@tam](https://forum.makecode.com/u/tam)\
**Post date:** [November 6, 2024, 3:07pm UTC](https://forum.makecode.com/t/issue-with-the-score-system-im-newbie/31482/6 "2024-11-06T15:07:31Z")

</div>

I plan to add more and fix the game, I place the coin represent the nuclear plants. Here is the link of the game I fix and appreciate you if you can: [https://arcade.makecode.com/S66470-23868-57707-59036](https://arcade.makecode.com/S66470-23868-57707-59036)
