# Skyfall

**URL:** <https://forum.makecode.com/t/skyfall/16871>\
**Category:** Help\
**Created:** [December 12, 2022, 7:43pm UTC](https://forum.makecode.com/t/skyfall/16871 "2022-12-12T19:43:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AbstractDesigner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/abstractdesigner/32/22531_2.png) [@AbstractDesigner](https://forum.makecode.com/u/AbstractDesigner)\
**Post date:** [December 12, 2022, 7:43pm UTC](https://forum.makecode.com/t/skyfall/16871/1 "2022-12-12T19:43:46Z")

</div>

How would you make it so that when you touch the ground for too long, you start to take damage?

> **Damage**
>
> The damage would be a second statusbar.

> **[Skyfall](https://arcade.makecode.com/S55997-66925-45999-83511)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<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:** [December 12, 2022, 8:03pm UTC](https://forum.makecode.com/t/skyfall/16871/2 "2022-12-12T20:03:45Z")

</div>

I LOVE the whole vibe of this game so far!

As for your question, this is easy to do if you use a few variables and an **on game update** block. Here’s some sample code (with comments):

> **[damage-on-ground](https://arcade.makecode.com/S99833-43981-06760-00296)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![AbstractDesigner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/abstractdesigner/32/22531_2.png) [@AbstractDesigner](https://forum.makecode.com/u/AbstractDesigner)\
**Post date:** [December 20, 2022, 5:59pm UTC](https://forum.makecode.com/t/skyfall/16871/3 "2022-12-20T17:59:26Z")

</div>

I’m stuck 😕  
I tried to make the damage’s timer a statusbar, but I dunno how to make that…

> **[Skyfall](https://arcade.makecode.com/10569-88107-40413-88593)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Could you please help me?
