# Help With My Status Bar

**URL:** https://forum.makecode.com/t/help-with-my-status-bar/3881
**Category:** Help
**Created:** [October 14, 2020, 3:22pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881 "2020-10-14T15:22:15Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)
#### Post date: [October 14, 2020, 3:22pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/1 "2020-10-14T15:22:15Z")

</div>

How might i make it so that you can’t shoot projectiles when the status bar is at zero?  
 ![Screenshot 2020-10-14 at 8.16.42 AM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9f913e4da991d78e0955590f1b41ccbcbd508872.png)  
Me has no bran today…bweeh.

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 14, 2020, 3:35pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/2 "2020-10-14T15:35:50Z")

</div>

give me the link to the game plz and I will fix it

---

<div class="post-metadata">

### Author: ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)
#### Post date: [October 14, 2020, 3:37pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/3 "2020-10-14T15:37:06Z")

</div>

> **[Power Up Test v1.0](https://arcade.makecode.com/48263-52454-62059-25357)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Here ya go.

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 14, 2020, 3:47pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/4 "2020-10-14T15:47:41Z")

</div>

> **[Power Up Test v1.0](https://arcade.makecode.com/39338-19051-00899-13617)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

  
Here ya go.

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 14, 2020, 3:49pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/5 "2020-10-14T15:49:52Z")

</div>

if you hold down B and A at the same time you get an unlimited supply of arrows! (or whatever they are)

---

<div class="post-metadata">

### Author: ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)
#### Post date: [October 14, 2020, 3:52pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/6 "2020-10-14T15:52:09Z")

</div>

Wow this is great, thank you! I appreciate the help, my brain isn’t working like it should today so i was stumped. Thanks! ❤ 👌

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 14, 2020, 3:53pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/7 "2020-10-14T15:53:20Z")

</div>

Your welcome it took me a few tries I hope your game is good! is this for blobby mc bouncy 2?

---

<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: [October 14, 2020, 3:53pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/8 "2020-10-14T15:53:49Z")

</div>

Well, I was going to say if the status bar is greater than or equal to the power required, than shoot the projectile but @purna079 beat me to it 🙂

The powerups look cool!

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 14, 2020, 3:54pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/9 "2020-10-14T15:54:28Z")

</div>

LOL ❤

---

<div class="post-metadata">

### Author: ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)
#### Post date: [October 14, 2020, 3:55pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/10 "2020-10-14T15:55:07Z")

</div>

No this is more of a side project, but i was thinking of adding an energy bar for Blobby so that you can’t spam shoot.

---

<div class="post-metadata">

### Author: ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)
#### Post date: [October 14, 2020, 3:56pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/11 "2020-10-14T15:56:08Z")

</div>

I want Blobby McBoucey 2 to be even better than the first one, with a little story line and everything.

---

<div class="post-metadata">

### Author: ![purna079](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/purna079/32/4018_2.png) [@purna079](https://forum.makecode.com/u/purna079)
#### Post date: [October 14, 2020, 5:17pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/12 "2020-10-14T17:17:24Z")

</div>

nice!

---

<div class="post-metadata">

### Author: ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)
#### Post date: [October 14, 2020, 6:34pm UTC](https://forum.makecode.com/t/help-with-my-status-bar/3881/13 "2020-10-14T18:34:46Z")

</div>

Okay so now i have a problem with it trying to cast on null. I have three different projectiles and only the first one works, every time the second or third type of projectiles hits an enemy i get an error that says ‘failure to cast on null’ here’s a copy of the current update:

> **[Power Up Test v1.5](https://arcade.makecode.com/15360-67065-08508-20453)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Bweeeeeh
