# The Blue Knight's Adventure

**URL:** <https://forum.makecode.com/t/the-blue-knights-adventure/20319>\
**Category:** Help\
**Created:** [May 31, 2023, 5:03pm UTC](https://forum.makecode.com/t/the-blue-knights-adventure/20319 "2023-05-31T17:03:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ShadowKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shadowknight/32/10476_2.png) [@ShadowKnight](https://forum.makecode.com/u/ShadowKnight)\
**Post date:** [May 31, 2023, 5:03pm UTC](https://forum.makecode.com/t/the-blue-knights-adventure/20319/1 "2023-05-31T17:03:36Z")

</div>

[The Blue Knight’s Adventure](https://arcade.makecode.com/S88703-27907-25086-13435)  
Hey guys! I needed help with making the HP decrease (when you hit an enemy), increase (when you collide with a health point) and reset (when you finish a level). And so far, I thought what I did could work, but once I went through the game, the HP got a little bit too overpowered and colliding with enemies made the HP bar decrease a tiny bit. What I would like to have is the HP stay at a certain amount and the max amount doesn’t change. Hope that works!  
**Controls:**  
Movement → arrows/WASD  
Jump → W/space  
Double Jump → press W/space again (not fast)

See you guys later, and thanks,  
Shadow Knight

---

<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:** [May 31, 2023, 9:18pm UTC](https://forum.makecode.com/t/the-blue-knights-adventure/20319/2 "2023-05-31T21:18:19Z")

</div>

Hmm looks familiar…

---

<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:** [May 31, 2023, 9:18pm UTC](https://forum.makecode.com/t/the-blue-knights-adventure/20319/3 "2023-05-31T21:18:21Z")

</div>

I think you need to change the value of the status bar, like when the knight overlaps with a heart.

---

<div class="post-metadata">

**Author:** ![ShadowKnight](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/shadowknight/32/10476_2.png) [@ShadowKnight](https://forum.makecode.com/u/ShadowKnight)\
**Post date:** [June 2, 2023, 5:53pm UTC](https://forum.makecode.com/t/the-blue-knights-adventure/20319/4 "2023-06-02T17:53:41Z")

</div>

Do you know how I should code it?

---

<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 2, 2023, 9:27pm UTC](https://forum.makecode.com/t/the-blue-knights-adventure/20319/5 "2023-06-02T21:27:29Z")

</div>

It’s the same as the hearts, just negative
