# How do i make a "shop" or something similar to it?

**URL:** <https://forum.makecode.com/t/how-do-i-make-a-shop-or-something-similar-to-it/17610>\
**Category:** Help\
**Created:** [January 26, 2023, 6:12pm UTC](https://forum.makecode.com/t/how-do-i-make-a-shop-or-something-similar-to-it/17610 "2023-01-26T18:12:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![seektest](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@seektest](https://forum.makecode.com/u/seektest)\
**Post date:** [January 26, 2023, 6:12pm UTC](https://forum.makecode.com/t/how-do-i-make-a-shop-or-something-similar-to-it/17610/1 "2023-01-26T18:12:24Z")

</div>

i’ve been having a _lot_ of trouble trying to make an “item selection” type thing.  
what i basically want to do is:  
every minute, you can press the B button to open a menu, or item selection. this will pause _everything_ until you have picked an item.  
the shop randomly picks 3 items out of around 24, and you can only pick one.

what i’m having trouble with:  
pausing everything. i want to pause all the enemies and the player sprite, but allow the player to select with the d-pad.  
i don’t know if this is clear or not, i’m not really good at explaining things. also, this is on my other account. if anyone responds, i’ll try and reply to them when i get home!!

---

<div class="post-metadata">

**Author:** ![randomuser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/randomuser/32/32505_2.png) [@randomuser](https://forum.makecode.com/u/randomuser)\
**Post date:** [January 26, 2023, 7:52pm UTC](https://forum.makecode.com/t/how-do-i-make-a-shop-or-something-similar-to-it/17610/2 "2023-01-26T19:52:48Z")

</div>

In my past games I used a ‘stage’ variable to determine if the game moved or not. All of the code started with ‘if stage === 1’ to make sure that when I set the stage to 0, the entire game would stop moving and calculating and stuff. Then, you can have an ‘else if stage === 0’ in the move buttons to have a different action in stage 0, when the menu is open. (Sorry if this doesn’t make sense, if you send the game i can help more)

---

<div class="post-metadata">

**Author:** ![seektest](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@seektest](https://forum.makecode.com/u/seektest)\
**Post date:** [January 26, 2023, 10:02pm UTC](https://forum.makecode.com/t/how-do-i-make-a-shop-or-something-similar-to-it/17610/3 "2023-01-26T22:02:18Z")

</div>

this is actually really helpful! i’ll send the game when i get home, then i’ll edit it and see if that works!

---

<div class="post-metadata">

**Author:** ![seektest](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@seektest](https://forum.makecode.com/u/seektest)\
**Post date:** [February 14, 2023, 6:56pm UTC](https://forum.makecode.com/t/how-do-i-make-a-shop-or-something-similar-to-it/17610/4 "2023-02-14T18:56:13Z")

</div>

😬  
yeah, sorry for the really long wait  
i don’t usually have a very long attention span and i plan on things too ambitious, so i probably won’t finish the game at all…  
i’ll send the game tonight when i get home

---

<div class="post-metadata">

**Author:** ![seektest](https://avatars.discourse-cdn.com/v4/letter/s/e5b9ba/32.png) [@seektest](https://forum.makecode.com/u/seektest)\
**Post date:** [February 15, 2023, 4:39pm UTC](https://forum.makecode.com/t/how-do-i-make-a-shop-or-something-similar-to-it/17610/5 "2023-02-15T16:39:20Z")

</div>

oh my god i’m so sorry i completely forgot  
i’m gonna TRY and send the game tonight- bruhhh 💀
