# Question about the "Settings" extention

**URL:** <https://forum.makecode.com/t/question-about-the-settings-extention/1657>\
**Category:** Arcade\
**Created:** [April 10, 2020, 12:50pm UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657 "2020-04-10T12:50:10Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blobiy](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Blobiy](https://forum.makecode.com/u/Blobiy)\
**Post date:** [April 10, 2020, 12:50pm UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657/1 "2020-04-10T12:50:10Z")

</div>

How does the setting extension work, because i though it was like a “save” but when i press (reset) then it resets. also when i press stop (square) and the turn it back “on” (play/triangle) it also resets, is this like a hardware only thing, or am i doing it wrong. all i have right now is on a button clicked it increases a value by one, sets the score for the “info” to that settings value so i can see it.

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [April 10, 2020, 1:48pm UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657/2 "2020-04-10T13:48:06Z")

</div>

It should save on hardware (by writing data in flash) or the browser (by writing data to localStorage).

---

<div class="post-metadata">

**Author:** ![Blobiy](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Blobiy](https://forum.makecode.com/u/Blobiy)\
**Post date:** [April 10, 2020, 5:28pm UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657/3 "2020-04-10T17:28:57Z")

</div>

so for a number i do “localStorage” for the name and it will save?

---

<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:** [April 10, 2020, 5:33pm UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657/4 "2020-04-10T17:33:11Z")

</div>

@Blobiy, you can name it whatever you want! Make sure you aren’t always calling “set setting to 0” at the beginning of your program. You should first check to see if the setting exists so that you don’t overwrite it! Here’s an example:

> **[settings-example](https://arcade.makecode.com/38868-31218-90786-58122)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

If you reset the sim you should see the number go up

---

<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:** [April 10, 2020, 5:33pm UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657/5 "2020-04-10T17:33:56Z")

</div>

Huh, doesn’t look like it works on the share page though. @mmoskal is that a known bug?

---

<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:** [April 10, 2020, 5:38pm UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657/6 "2020-04-10T17:38:00Z")

</div>

@Blobiy that example I posted will only work if you open it in the editor

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [April 10, 2020, 5:44pm UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657/7 "2020-04-10T17:44:59Z")

</div>

@richard sounds like a regression.

---

<div class="post-metadata">

**Author:** ![Blobiy](https://avatars.discourse-cdn.com/v4/letter/b/6de8d8/32.png) [@Blobiy](https://forum.makecode.com/u/Blobiy)\
**Post date:** [April 10, 2020, 5:48pm UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657/8 "2020-04-10T17:48:02Z")

</div>

weird  
can you also look at my other post because i am having problems w/ the zombie game again ☹

---

<div class="post-metadata">

**Author:** ![mmoskal](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mmoskal/32/20_2.png) [@mmoskal](https://forum.makecode.com/u/mmoskal)\
**Post date:** [April 10, 2020, 5:48pm UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657/9 "2020-04-10T17:48:31Z")

</div>

The storage is outside the simulator frame. I used to have it implemented, at least in my rewrite with cloud compile. Maybe it’s not there in the current page?

---

<div class="post-metadata">

**Author:** ![peli](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/peli/32/12_2.png) [@peli](https://forum.makecode.com/u/peli)\
**Post date:** [April 11, 2020, 10:43am UTC](https://forum.makecode.com/t/question-about-the-settings-extention/1657/10 "2020-04-11T10:43:06Z")

</div>

Hummm it is implemented in the github pages js but not on our sharing page template. Cloud compile never got merged.
