# Quick question about the text extension

**URL:** <https://forum.makecode.com/t/quick-question-about-the-text-extension/18658>\
**Category:** Help\
**Created:** [March 20, 2023, 6:35pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658 "2023-03-20T18:35:54Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)\
**Post date:** [March 20, 2023, 6:35pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/1 "2023-03-20T18:35:54Z")

</div>

Hi there! Is it possible to create a simple custom score using the arcade text extension?  
This is the thing that i’m working on. I’d like to make it so that the coin counter in the picture goes up once you kill an enemy.  
 ![arcade-Stupid-Shooter-test](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/eaba9bc91f34ef9154e0525161cb46878a0e6804.png)

---

<div class="post-metadata">

**Author:** ![Maketendo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maketendo/32/27571_2.png) [@Maketendo](https://forum.makecode.com/u/Maketendo)\
**Post date:** [March 20, 2023, 6:43pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/2 "2023-03-20T18:43:12Z")

</div>

can you send a link them I could help

---

<div class="post-metadata">

**Author:** ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)\
**Post date:** [March 20, 2023, 7:05pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/3 "2023-03-20T19:05:29Z")

</div>

Okay! Here it is…

> **[FPS game test](https://arcade.makecode.com/S42661-40509-68123-18764)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Maketendo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maketendo/32/27571_2.png) [@Maketendo](https://forum.makecode.com/u/Maketendo)\
**Post date:** [March 20, 2023, 7:12pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/4 "2023-03-20T19:12:24Z")

</div>

thanks

---

<div class="post-metadata">

**Author:** ![Blobbey](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blobbey/32/20831_2.png) [@Blobbey](https://forum.makecode.com/u/Blobbey)\
**Post date:** [March 20, 2023, 7:22pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/5 "2023-03-20T19:22:56Z")

</div>

Something like this should work.  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/1/180bc66cc3807307f40b002969b4b5095f791b92.png)  
Hope this helps.

---

<div class="post-metadata">

**Author:** ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)\
**Post date:** [March 20, 2023, 10:57pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/6 "2023-03-20T22:57:54Z")

</div>

It did actually help! I simply made it so that the monkey would drop a coin when killed and added that code when the player touched the coin. Thanks a bunch!

---

<div class="post-metadata">

**Author:** ![Maketendo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maketendo/32/27571_2.png) [@Maketendo](https://forum.makecode.com/u/Maketendo)\
**Post date:** [March 20, 2023, 10:58pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/7 "2023-03-20T22:58:03Z")

</div>

so you just need to put the change score block

---

<div class="post-metadata">

**Author:** ![Maketendo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maketendo/32/27571_2.png) [@Maketendo](https://forum.makecode.com/u/Maketendo)\
**Post date:** [March 20, 2023, 10:59pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/8 "2023-03-20T22:59:33Z")

</div>

yeah i did the same thing

> **[FPS game test](https://arcade.makecode.com/S47940-75596-77807-50555)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

but I also made it so it updates

---

<div class="post-metadata">

**Author:** ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)\
**Post date:** [March 21, 2023, 12:19am UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/9 "2023-03-21T00:19:33Z")

</div>

Another question I’d like to ask (that doesn’t nessecarily relate to the text extension…)  
Is it possible to save the amount of coins that the player has after destroying monkeys?  
I’m asking because I plan to add more weapons to this game, so I’ll add a shop where you could spend coins for different weapons. There’s no point in buying a weapon when you reset the game and everything is gone, right?

---

<div class="post-metadata">

**Author:** ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)\
**Post date:** [March 21, 2023, 12:26am UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/10 "2023-03-21T00:26:06Z")

</div>

The settings extention saves a number or a string, so when you come back, it is still what is was when you left.

---

<div class="post-metadata">

**Author:** ![Maketendo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maketendo/32/27571_2.png) [@Maketendo](https://forum.makecode.com/u/Maketendo)\
**Post date:** [March 21, 2023, 5:05pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/11 "2023-03-21T17:05:06Z")

</div>

I Have also put in saving for your coins 😀👍

> **[FPS game test](https://arcade.makecode.com/S47940-75596-77807-50555)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)\
**Post date:** [March 21, 2023, 5:50pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/13 "2023-03-21T17:50:25Z")

</div>

Sorry, could you put that code back in for the current link? The project you have is outdated, and I’d like to put the code back into the current version, since when I try to do that, it doesn’t work.

> **[FPS game test (2nd link)](https://arcade.makecode.com/90940-81100-61587-25058)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![Unique](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unique/32/32724_2.png) [@Unique](https://forum.makecode.com/u/Unique)\
**Post date:** [March 21, 2023, 6:06pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/14 "2023-03-21T18:06:02Z")

</div>

I was just watching Curious George with my sister before reading this post…  
(I’m not kidding)

 ![Screen Shot 2023-03-21 at 1.51.52 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9e14d23ecf982acb091101ae9d77e8ba8c2e5f54.png)

---

<div class="post-metadata">

**Author:** ![Maketendo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maketendo/32/27571_2.png) [@Maketendo](https://forum.makecode.com/u/Maketendo)\
**Post date:** [March 21, 2023, 6:06pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/15 "2023-03-21T18:06:03Z")

</div>

ok will do 👍

---

<div class="post-metadata">

**Author:** ![Maketendo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maketendo/32/27571_2.png) [@Maketendo](https://forum.makecode.com/u/Maketendo)\
**Post date:** [March 21, 2023, 6:17pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/16 "2023-03-21T18:17:55Z")

</div>

here it is and if you press the menu there will be an option to reset your coins:

> **[FPS game test (2nd link)](https://arcade.makecode.com/S39423-98247-81582-99810)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![49dev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/49dev/32/8577_2.png) [@49dev](https://forum.makecode.com/u/49dev)\
**Post date:** [March 21, 2023, 7:40pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/17 "2023-03-21T19:40:41Z")

</div>

Built-in menu options??? How? (I did sneak a peek at the code to figure out how.) It seems to be an extension! Can you send me the extension download link when you have the time?

---

<div class="post-metadata">

**Author:** ![Maketendo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maketendo/32/27571_2.png) [@Maketendo](https://forum.makecode.com/u/Maketendo)\
**Post date:** [March 21, 2023, 8:20pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/18 "2023-03-21T20:20:49Z")

</div>

well @meeeeeeeep1 has created this extension but here the link [Custom Menu Showcase](https://forum.makecode.com/t/custom-menu-showcase/18381)  
and I can teach you how

1. go to javascript  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/5/5035933f46f407d8a0c777eaf36b6b22702d2cf9.png)

2. click on explorer under the simulator  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/456f75fc45d15c69f7f25d1d75bb70edc3451521.png)

3. click on the plus symbol next to the explorer  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/7/7f0b02ac3e4f17887e42fea46e607b9cff245520.png)

4. click the ok button but don’t change the name  

5. delete all the code in the file and paste in this:  
//% color=“#e6ac00” icon=“” block=“Menu”  
namespace menu {

---

<div class="post-metadata">

**Author:** ![49dev](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/49dev/32/8577_2.png) [@49dev](https://forum.makecode.com/u/49dev)\
**Post date:** [March 22, 2023, 3:00pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/19 "2023-03-22T15:00:44Z")

</div>

Wow, thanks! This is better than my custom-made pause menu.

---

<div class="post-metadata">

**Author:** ![TheConeGuy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/theconeguy/32/13840_2.png) [@TheConeGuy](https://forum.makecode.com/u/TheConeGuy)\
**Post date:** [March 27, 2023, 11:26pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/20 "2023-03-27T23:26:01Z")

</div>

Hey there again! I’m sorry I keep asking so many of these, but this will hopefully be the last question I ask: Would it be possible to create a menu using the arcade-menu extension?  
For some reason, whenever I try to do this myself, the game crashes due to a “reading width” error.  
Here’s the current code: [https://makecode.com/\_Rtm977MeiF0b](https://makecode.com/_Rtm977MeiF0b)  
Additionally, I’ve added a new gun; the Freeze Ray. Thanks for playing the game & answering my questions 😃

---

<div class="post-metadata">

**Author:** ![Maketendo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/maketendo/32/27571_2.png) [@Maketendo](https://forum.makecode.com/u/Maketendo)\
**Post date:** [March 28, 2023, 9:54pm UTC](https://forum.makecode.com/t/quick-question-about-the-text-extension/18658/21 "2023-03-28T21:54:13Z")

</div>

I’ve fixed the error you had.

> **[FPS game test (new gun + menu test)](https://arcade.makecode.com/S99583-69841-53195-64475)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.
