# Weird bug in my game going on

**URL:** <https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386>\
**Category:** Help\
**Created:** [March 7, 2025, 7:25pm UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386 "2025-03-07T19:25:52Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![IneedHelpWsumCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ineedhelpwsumcoding/32/20536_2.png) [@IneedHelpWsumCoding](https://forum.makecode.com/u/IneedHelpWsumCoding)\
**Post date:** [March 7, 2025, 7:25pm UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/1 "2025-03-07T19:25:52Z")

</div>

So, in the game I am making right now is a clicker game that adds up score then use that score in shop to buy upgrades but, when clicking on the purchase button and exiting the shop instead of destroying they stay there but when I don’t click on them, they destroy as supposed too.

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [March 7, 2025, 8:51pm UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/2 "2025-03-07T20:51:22Z")

</div>

It’s very hard to help if you don’t share a link to your project, but is there a chance you are creating more than one menu sprite? Then only the most recent one would be getting destroyed and the first one would stay.

---

<div class="post-metadata">

**Author:** ![Fixitude](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fixitude/32/28576_2.png) [@Fixitude](https://forum.makecode.com/u/Fixitude)\
**Post date:** [March 7, 2025, 9:06pm UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/3 "2025-03-07T21:06:40Z")

</div>

Provide me the link and I will look over the code I also made a cookie clicker.

---

<div class="post-metadata">

**Author:** ![IneedHelpWsumCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ineedhelpwsumcoding/32/20536_2.png) [@IneedHelpWsumCoding](https://forum.makecode.com/u/IneedHelpWsumCoding)\
**Post date:** [March 11, 2025, 12:00pm UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/4 "2025-03-11T12:00:11Z")

</div>

wait if you edit my code will it affect the final product of it like if someone changes it?

---

<div class="post-metadata">

**Author:** ![swirlix](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/swirlix/32/35624_2.png) [@swirlix](https://forum.makecode.com/u/swirlix)\
**Post date:** [March 12, 2025, 1:43am UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/5 "2025-03-12T01:43:04Z")

</div>

No, but you can download their game after they edit a copy of your game

---

<div class="post-metadata">

**Author:** ![Microbitter](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/microbitter/32/20451_2.png) [@Microbitter](https://forum.makecode.com/u/Microbitter)\
**Post date:** [March 12, 2025, 1:44am UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/6 "2025-03-12T01:44:29Z")

</div>

No, they cannot edit your og code, but they can edit a copy of it! (hopefully this helps)

---

<div class="post-metadata">

**Author:** ![Danny\_Devention](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/danny_devention/32/30134_2.png) [@Danny\_Devention](https://forum.makecode.com/u/Danny_Devention)\
**Post date:** [March 12, 2025, 1:45am UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/7 "2025-03-12T01:45:54Z")

</div>

Changes only apply to seperate links, if I grab your code and change it its only changed for my version, the older links are unaffected

---

<div class="post-metadata">

**Author:** ![Fixitude](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/fixitude/32/28576_2.png) [@Fixitude](https://forum.makecode.com/u/Fixitude)\
**Post date:** [March 12, 2025, 1:57am UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/8 "2025-03-12T01:57:43Z")

</div>

No it won’t but we have to send it back to you then.

---

<div class="post-metadata">

**Author:** ![Sonicblaston](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sonicblaston/32/19164_2.png) [@Sonicblaston](https://forum.makecode.com/u/Sonicblaston)\
**Post date:** [March 12, 2025, 1:57am UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/9 "2025-03-12T01:57:53Z")

</div>

Nope. You’re sharing a copy of the project when giving us a link

---

<div class="post-metadata">

**Author:** ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)\
**Post date:** [March 12, 2025, 2:12am UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/10 "2025-03-12T02:12:12Z")

</div>

im pretty sure if they edit your code only their copy of your game will be affected, your main one should be the same

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [March 12, 2025, 2:20am UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/11 "2025-03-12T02:20:32Z")

</div>

I removed my answer cause there are already so many!! Glad to see so many people helping out on here, makes me happy ☺

> **I wrote too much to delete it all**
>
> No. Sharing the link does not give edit access. It only shares the game code (like if you shared the game with a friend, so they can’t edit the project but they can play the game). We can copy the code and make our own copies, and then we can easily find the bug, but it will not change your original copy. When I find bugs I usually explain what’s wrong and send a screenshot of the fix!

---

<div class="post-metadata">

**Author:** ![IneedHelpWsumCoding](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ineedhelpwsumcoding/32/20536_2.png) [@IneedHelpWsumCoding](https://forum.makecode.com/u/IneedHelpWsumCoding)\
**Post date:** [March 17, 2025, 3:33am UTC](https://forum.makecode.com/t/weird-bug-in-my-game-going-on/34386/13 "2025-03-17T03:33:13Z")

</div>

hello everyone I have found the solution to the problem thanks to everyone who helped and supported.
