# How to make the menu button do nothing?

**URL:** <https://forum.makecode.com/t/how-to-make-the-menu-button-do-nothing/31207>\
**Category:** Help\
**Created:** [October 16, 2024, 5:10pm UTC](https://forum.makecode.com/t/how-to-make-the-menu-button-do-nothing/31207 "2024-10-16T17:10:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![LostPineappleGames](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/lostpineapplegames/32/19789_2.png) [@LostPineappleGames](https://forum.makecode.com/u/LostPineappleGames)\
**Post date:** [October 16, 2024, 5:10pm UTC](https://forum.makecode.com/t/how-to-make-the-menu-button-do-nothing/31207/1 "2024-10-16T17:10:01Z")

</div>

how do I make the menu button do nothing because I am making a game and it is very annoying

---

<div class="post-metadata">

**Author:** ![BlueYoshi507](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/blueyoshi507/32/32630_2.png) [@BlueYoshi507](https://forum.makecode.com/u/BlueYoshi507)\
**Post date:** [October 17, 2024, 4:38pm UTC](https://forum.makecode.com/t/how-to-make-the-menu-button-do-nothing/31207/2 "2024-10-17T16:38:46Z")

</div>

My solution could be to create a variable, then “when Menu button pressed, set “variable” to 0”. Remember, that variable won’t affect your game any way, but it will be important to not turn on the options.

---

<div class="post-metadata">

**Author:** ![TeddyB](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/teddyb/32/35627_2.png) [@TeddyB](https://forum.makecode.com/u/TeddyB)\
**Post date:** [October 17, 2024, 4:39pm UTC](https://forum.makecode.com/t/how-to-make-the-menu-button-do-nothing/31207/3 "2024-10-17T16:39:05Z")

</div>

![Untitled video - Made with Clipchamp (19)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/1/e/1e675e03c3f1e567188ea875166fc1a3c4d52735.gif)

---

<div class="post-metadata">

**Author:** ![AgentBoom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agentboom/32/16635_2.png) [@AgentBoom](https://forum.makecode.com/u/AgentBoom)\
**Post date:** [October 17, 2024, 4:39pm UTC](https://forum.makecode.com/t/how-to-make-the-menu-button-do-nothing/31207/4 "2024-10-17T16:39:29Z")

</div>

Just drag an “On **menu** button pressed” sandwich block into your editor and leave it empty!

---

<div class="post-metadata">

**Author:** ![Astro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/astro/32/35479_2.png) [@Astro](https://forum.makecode.com/u/Astro)\
**Post date:** [October 17, 2024, 4:42pm UTC](https://forum.makecode.com/t/how-to-make-the-menu-button-do-nothing/31207/5 "2024-10-17T16:42:48Z")

</div>

Put down the on button press thing and put something stupid in it, like setting a value to 1

---

<div class="post-metadata">

**Author:** ![redSprite](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/redsprite/32/34262_2.png) [@redSprite](https://forum.makecode.com/u/redSprite)\
**Post date:** [October 17, 2024, 4:43pm UTC](https://forum.makecode.com/t/how-to-make-the-menu-button-do-nothing/31207/6 "2024-10-17T16:43:12Z")

</div>

Drag out an on A button pressed block and set the dropdown to “Menu”  
don’t put any blocks in the container

---

<div class="post-metadata">

**Author:** ![\_jupiter](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/_jupiter/32/28012_2.png) [@\_jupiter](https://forum.makecode.com/u/_jupiter)\
**Post date:** [October 17, 2024, 4:43pm UTC](https://forum.makecode.com/t/how-to-make-the-menu-button-do-nothing/31207/7 "2024-10-17T16:43:46Z")

</div>

If menu pressed run a function that does nothing

//THAT IS LITER  
ally it

---

<div class="post-metadata">

**Author:** ![NeoStreak](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/neostreak/32/27498_2.png) [@NeoStreak](https://forum.makecode.com/u/NeoStreak)\
**Post date:** [October 17, 2024, 4:46pm UTC](https://forum.makecode.com/t/how-to-make-the-menu-button-do-nothing/31207/8 "2024-10-17T16:46:55Z")

</div>

Go to the controller section and pick on when menu button pressed. Don’t add anything. The menu button will do nothing
