# Game randomly broke

**URL:** <https://forum.makecode.com/t/game-randomly-broke/12378>\
**Category:** Help\
**Tags:** game\
**Created:** [February 25, 2022, 5:48pm UTC](https://forum.makecode.com/t/game-randomly-broke/12378 "2022-02-25T17:48:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Signalia](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@Signalia](https://forum.makecode.com/u/Signalia)\
**Post date:** [February 25, 2022, 5:48pm UTC](https://forum.makecode.com/t/game-randomly-broke/12378/1 "2022-02-25T17:48:40Z")

</div>

I added a new enemy, and then when I went to restart the game, the cutscene sprites wont appear, it always errored when the cutscene ended, and it just got worse and worse. Can somebody check it out? Thanks. [https://makecode.com/\_2TbLuuYMMR4J](https://makecode.com/_2TbLuuYMMR4J)

---

<div class="post-metadata">

**Author:** ![AqeeAqee](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/aqeeaqee/32/5424_2.png) [@AqeeAqee](https://forum.makecode.com/u/AqeeAqee)\
**Post date:** [February 28, 2022, 4:23pm UTC](https://forum.makecode.com/t/game-randomly-broke/12378/2 "2022-02-28T16:23:36Z")

</div>

The bug probably is here, where PlasticThrower referrence have not create yet.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d78bc1ffe851a8eaf4e9c053e3f1139fcbe5503d.png)

Add if(PlasticThrower) as following. Then bug 's gone, in my test  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/943327e5727709b4c0a78e3066232864a478e5f4.png)

---

<div class="post-metadata">

**Author:** ![Signalia](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@Signalia](https://forum.makecode.com/u/Signalia)\
**Post date:** [March 1, 2022, 1:25am UTC](https://forum.makecode.com/t/game-randomly-broke/12378/3 "2022-03-01T01:25:49Z")

</div>

Thank you so much I needed this for a school project, and I am still quite new to making games.
