# Help with button imput cooldown things?

**URL:** <https://forum.makecode.com/t/help-with-button-imput-cooldown-things/33296>\
**Category:** Help\
**Created:** [January 20, 2025, 6:40pm UTC](https://forum.makecode.com/t/help-with-button-imput-cooldown-things/33296 "2025-01-20T18:40:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)\
**Post date:** [January 20, 2025, 6:40pm UTC](https://forum.makecode.com/t/help-with-button-imput-cooldown-things/33296/1 "2025-01-20T18:40:21Z")

</div>

Say one wishes to have an action occur whenever the A button is pressed. is there a way to add a cooldown for said action from occuring, if possible using blocks?

---

<div class="post-metadata">

**Author:** ![ADM\_F](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/adm_f/32/19808_2.png) [@ADM\_F](https://forum.makecode.com/u/ADM_F)\
**Post date:** [January 21, 2025, 5:21pm UTC](https://forum.makecode.com/t/help-with-button-imput-cooldown-things/33296/2 "2025-01-21T17:21:26Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/b/5b40821c8873af6b38f3380e08f4e5171a20f282.png)  
you could use this block from the timers extension

---

<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:** [January 21, 2025, 5:34pm UTC](https://forum.makecode.com/t/help-with-button-imput-cooldown-things/33296/3 "2025-01-21T17:34:04Z")

</div>

Yup!

The “Timer” Extension is a default extension in the list in makecode. With it comes a block which says

```auto
For *write action name* at most once every *input cooldown time* do

```

Inside that sandwich block you just pop your A button code and there you have your cooldown! Please, if you have any doubts, don’t hesitate to ask for my help.

---

<div class="post-metadata">

**Author:** ![CodeOnTheCob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codeonthecob/32/19306_2.png) [@CodeOnTheCob](https://forum.makecode.com/u/CodeOnTheCob)\
**Post date:** [January 21, 2025, 6:47pm UTC](https://forum.makecode.com/t/help-with-button-imput-cooldown-things/33296/4 "2025-01-21T18:47:38Z")

</div>

try this [https://makecode.com/\_DDH0FhcU9YyL](https://makecode.com/_DDH0FhcU9YyL)

---

<div class="post-metadata">

**Author:** ![Bilangus](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bilangus/32/33219_2.png) [@Bilangus](https://forum.makecode.com/u/Bilangus)\
**Post date:** [January 21, 2025, 6:58pm UTC](https://forum.makecode.com/t/help-with-button-imput-cooldown-things/33296/5 "2025-01-21T18:58:24Z")

</div>

thanks for the help, this shall come in handy fairly soon maybe

---

<div class="post-metadata">

**Author:** ![CodeOnTheCob](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/codeonthecob/32/19306_2.png) [@CodeOnTheCob](https://forum.makecode.com/u/CodeOnTheCob)\
**Post date:** [January 21, 2025, 11:54pm UTC](https://forum.makecode.com/t/help-with-button-imput-cooldown-things/33296/6 "2025-01-21T23:54:07Z")

</div>

made it better [https://makecode.com/\_HHVPk00yfeCm](https://makecode.com/_HHVPk00yfeCm)
