# Error in my game

**URL:** <https://forum.makecode.com/t/error-in-my-game/1410>\
**Category:** Help\
**Created:** [March 14, 2020, 11:01pm UTC](https://forum.makecode.com/t/error-in-my-game/1410 "2020-03-14T23:01:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![codebott578](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codebott578/32/690_2.png) [@codebott578](https://forum.makecode.com/u/codebott578)\
**Post date:** [March 14, 2020, 11:01pm UTC](https://forum.makecode.com/t/error-in-my-game/1410/1 "2020-03-14T23:01:17Z")

</div>

i codded more of some boss mode but when i use logic blocks, it makes error in the very beginning. i cant seen to find the problem. can you figure it out? thanks!

> **[dark dungeons v2.3](https://arcade.makecode.com/69080-36441-09116-70086)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![tballmsft](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/tballmsft/32/332_2.png) [@tballmsft](https://forum.makecode.com/u/tballmsft)\
**Post date:** [March 15, 2020, 12:54am UTC](https://forum.makecode.com/t/error-in-my-game/1410/2 "2020-03-15T00:54:12Z")

</div>

Try this one: [https://makecode.com/\_bULgm5KeMHfX](https://makecode.com/_bULgm5KeMHfX). You needed to move the conditional check on projectile2 into the same branch as the assignment to projectile2. Since it was in a different branch, projectile2 was null.

---

<div class="post-metadata">

**Author:** ![codebott578](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codebott578/32/690_2.png) [@codebott578](https://forum.makecode.com/u/codebott578)\
**Post date:** [March 15, 2020, 8:43pm UTC](https://forum.makecode.com/t/error-in-my-game/1410/3 "2020-03-15T20:43:50Z")

</div>

ok. thanks!
