# Fall damage

**URL:** <https://forum.makecode.com/t/fall-damage/39891>\
**Category:** Help\
**Created:** [October 20, 2025, 9:49pm UTC](https://forum.makecode.com/t/fall-damage/39891 "2025-10-20T21:49:37Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://forum.makecode.com/u/Axel)\
**Post date:** [October 20, 2025, 9:49pm UTC](https://forum.makecode.com/t/fall-damage/39891/1 "2025-10-20T21:49:37Z")

</div>

i want my character to lose heath when they hit the ground from the cloud, what are some ways i can code this?

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [October 20, 2025, 10:10pm UTC](https://forum.makecode.com/t/fall-damage/39891/2 "2025-10-20T22:10:30Z")

</div>

good question!

the easiest way to do this is to simply check the velocity when you hit the ground.

here’s some sample code:

> **[fall-damage-example-1](https://arcade.makecode.com/72558-14411-51529-90879)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

and here’s the relevant bit:

 ![snapshot](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/6/3/63b120eec7dec1f9a2f94e030ded77d59f4610ec.png)

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [October 21, 2025, 3:50pm UTC](https://forum.makecode.com/t/fall-damage/39891/3 "2025-10-21T15:50:14Z")

</div>

A little more complicated version of the “(sprite) touching wall (direction)?” block.

What benefits does it have?

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [October 21, 2025, 5:09pm UTC](https://forum.makecode.com/t/fall-damage/39891/4 "2025-10-21T17:09:35Z")

</div>

that works too! i just didn’t think of it

---

<div class="post-metadata">

**Author:** ![Axel](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Axel](https://forum.makecode.com/u/Axel)\
**Post date:** [October 22, 2025, 9:34pm UTC](https://forum.makecode.com/t/fall-damage/39891/5 "2025-10-22T21:34:20Z")

</div>

thank you! this helped a lot and i was able to figure it out. This is the project i used it for, its not quite done since its just to prove that i can code the base mechanics to qualify to compete

> **[TSA GAME PROJECT](https://arcade.makecode.com/S76844-12943-98369-20004)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
