# Code not working

**URL:** <https://forum.makecode.com/t/code-not-working/6361>\
**Category:** Arcade\
**Created:** [February 25, 2021, 4:48pm UTC](https://forum.makecode.com/t/code-not-working/6361 "2021-02-25T16:48:43Z")\
**Posts on this page:** 7\
**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:** [February 25, 2021, 4:48pm UTC](https://forum.makecode.com/t/code-not-working/6361/1 "2021-02-25T16:48:43Z")

</div>

One of my students posed this to me. I am asking for help. "When I put If fireball Overlaps with skull dude then destroy skull dude with fountain for 500 it won’t let me start the game "! ![F7828497-060A-4F38-B9E8-A3C637FF7255_4_5005_c](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/f/fd140fa9d74505a1852049dbcc958258576529ba.jpeg)

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [February 25, 2021, 4:52pm UTC](https://forum.makecode.com/t/code-not-working/6361/2 "2021-02-25T16:52:43Z")

</div>

Hi there can you get a share link to the code?

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [February 25, 2021, 5:06pm UTC](https://forum.makecode.com/t/code-not-working/6361/3 "2021-02-25T17:06:20Z")

</div>

Can you share the game? Also I think it would be better if they use the event `on sprite kind overlaps othersprite kind.`

---

<div class="post-metadata">

**Author:** ![Primal\_Nexus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/primal_nexus/32/3540_2.png) [@Primal\_Nexus](https://forum.makecode.com/u/Primal_Nexus)\
**Post date:** [February 25, 2021, 6:22pm UTC](https://forum.makecode.com/t/code-not-working/6361/4 "2021-02-25T18:22:17Z")

</div>

@BruceSchwa As @UnsignedArduino and @Agent_14 have said, it would be much better if you shared the game (@ mention me if you need help sharing) to us, meaning that we can edit the code and hopefully, fix your issue!

---

<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:** [February 25, 2021, 8:27pm UTC](https://forum.makecode.com/t/code-not-working/6361/5 "2021-02-25T20:27:31Z")

</div>

Thanks, Primal\_Nexus, [https://makecode.com/\_b1CgYXMET40r](https://makecode.com/_b1CgYXMET40r)

---

<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:** [February 25, 2021, 8:27pm UTC](https://forum.makecode.com/t/code-not-working/6361/6 "2021-02-25T20:27:32Z")

</div>

Thanks, [https://makecode.com/\_b1CgYXMET40r](https://makecode.com/_b1CgYXMET40r)

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [February 25, 2021, 8:49pm UTC](https://forum.makecode.com/t/code-not-working/6361/7 "2021-02-25T20:49:11Z")

</div>

It’s because `Fireball` isn’t defined - you didn’t make it yet so it becomes `null` and you check whether `null` is overlapping with a sprite.
