# I’ve got a problem with projectiles if I click on the projectile it says sim error failed cast on null

**URL:** <https://forum.makecode.com/t/i-ve-got-a-problem-with-projectiles-if-i-click-on-the-projectile-it-says-sim-error-failed-cast-on-null/29510>\
**Category:** Help\
**Created:** [June 29, 2024, 3:47pm UTC](https://forum.makecode.com/t/i-ve-got-a-problem-with-projectiles-if-i-click-on-the-projectile-it-says-sim-error-failed-cast-on-null/29510 "2024-06-29T15:47:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harvey](https://avatars.discourse-cdn.com/v4/letter/h/96bed5/32.png) [@Harvey](https://forum.makecode.com/u/Harvey)\
**Post date:** [June 29, 2024, 3:47pm UTC](https://forum.makecode.com/t/i-ve-got-a-problem-with-projectiles-if-i-click-on-the-projectile-it-says-sim-error-failed-cast-on-null/29510/1 "2024-06-29T15:47:48Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/5/550da349cb59acbbb2e8d8e1496b447cd990a4cd.jpeg)

---

<div class="post-metadata">

**Author:** ![anon30657772](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anon30657772](https://forum.makecode.com/u/anon30657772)\
**Post date:** [June 29, 2024, 9:44pm UTC](https://forum.makecode.com/t/i-ve-got-a-problem-with-projectiles-if-i-click-on-the-projectile-it-says-sim-error-failed-cast-on-null/29510/2 "2024-06-29T21:44:51Z")

</div>

I’m sorry but the picture is too blurry / low quality for the text to be legible 🙁

You can take screenshots by pressing the “prtScn” or “prntScrn” or “prt sc” button. Then you can simply do “control” + “v” to paste the screenshot in your post message!

Another way of sharing your code is to simply click on the share button on the top right of the editor:  
 ![Share button](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/6/56e95cfb556bc37750b3ddaafb818d1057422dca.png)

Then simply paste in the link!

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [June 30, 2024, 3:41am UTC](https://forum.makecode.com/t/i-ve-got-a-problem-with-projectiles-if-i-click-on-the-projectile-it-says-sim-error-failed-cast-on-null/29510/3 "2024-06-30T03:41:40Z")

</div>

i think you’re not running anything, I don’t see anything on your start block

---

<div class="post-metadata">

**Author:** ![anon30657772](https://avatars.discourse-cdn.com/v4/letter/a/3d9bf3/32.png) [@anon30657772](https://forum.makecode.com/u/anon30657772)\
**Post date:** [July 1, 2024, 5:54am UTC](https://forum.makecode.com/t/i-ve-got-a-problem-with-projectiles-if-i-click-on-the-projectile-it-says-sim-error-failed-cast-on-null/29510/4 "2024-07-01T05:54:56Z")

</div>

It might be the “forever” block causing the problem!
