# How to make a hud

**URL:** <https://forum.makecode.com/t/how-to-make-a-hud/41741>\
**Category:** Help\
**Created:** [January 27, 2026, 3:06am UTC](https://forum.makecode.com/t/how-to-make-a-hud/41741 "2026-01-27T03:06:07Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Katz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/katz/32/28387_2.png) [@Katz](https://forum.makecode.com/u/Katz)\
**Post date:** [January 27, 2026, 3:06am UTC](https://forum.makecode.com/t/how-to-make-a-hud/41741/1 "2026-01-27T03:06:07Z")

</div>

So, I want the game to keep track of the coins you collect, but I have no idea how to do that. How do I do that?

> **[Jumpy Platformer Proof Of Concept 2](https://arcade.makecode.com/S40434-63540-76921-96100)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Trr](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/trr/32/31964_2.png) [@Trr](https://forum.makecode.com/u/Trr)\
**Post date:** [January 27, 2026, 4:06pm UTC](https://forum.makecode.com/t/how-to-make-a-hud/41741/2 "2026-01-27T16:06:44Z")

</div>

You could use the arcade-text extension then just make it display a variable which holds how much coin you have.

---

<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:** [January 27, 2026, 4:06pm UTC](https://forum.makecode.com/t/how-to-make-a-hud/41741/3 "2026-01-27T16:06:59Z")

</div>

Every time you gain a coin just update a fancy text sprite/textsprite

---

<div class="post-metadata">

**Author:** ![uni](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/uni/32/28409_2.png) [@uni](https://forum.makecode.com/u/uni)\
**Post date:** [January 27, 2026, 4:09pm UTC](https://forum.makecode.com/t/how-to-make-a-hud/41741/4 "2026-01-27T16:09:09Z")

</div>

Like… are you looking to create a _ **variable** _, _ **increment** _ it, and use a Text Sprite to display the coin count? If so, i believe there is an extension called [Arcade Text](https://arcade.makecode.com/pkg/microsoft/arcade-text). I think it’s on the built-in extension list.

Awesome game, btw!!! ^w^

[Arcade Text Extension](https://arcade.makecode.com/pkg/microsoft/arcade-text)

---

<div class="post-metadata">

**Author:** ![TheBestialCelestial](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/thebestialcelestial/32/34092_2.png) [@TheBestialCelestial](https://forum.makecode.com/u/TheBestialCelestial)\
**Post date:** [January 27, 2026, 4:10pm UTC](https://forum.makecode.com/t/how-to-make-a-hud/41741/5 "2026-01-27T16:10:09Z")

</div>

what you could probably do is set up a text sprite (there’s an extension that allows that) and constantly set its text to the amount of coins you have.
