# How to add cool down

**URL:** <https://forum.makecode.com/t/how-to-add-cool-down/28992>\
**Category:** Help\
**Tags:** game\
**Created:** [May 29, 2024, 2:49am UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992 "2024-05-29T02:49:14Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![quix](https://avatars.discourse-cdn.com/v4/letter/q/9de053/32.png) [@quix](https://forum.makecode.com/u/quix)\
**Post date:** [May 29, 2024, 2:49am UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/1 "2024-05-29T02:49:14Z")

</div>

Can someone help me add a cooldown I’ve been stuck on it for ages  
[Microsoft MakeCode Arcade](https://arcade.makecode.com/#editor)

---

<div class="post-metadata">

**Author:** ![babol](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/babol/32/27355_2.png) [@babol](https://forum.makecode.com/u/babol)\
**Post date:** [May 29, 2024, 10:30pm UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/2 "2024-05-29T22:30:18Z")

</div>

this is not a shared link, this just leads to the editor.  
press ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e79eac2bebb7e0942619f400e4881dea4a2b31f1.png) to create a sharing link.

---

<div class="post-metadata">

**Author:** ![teach421](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/teach421/32/12978_2.png) [@teach421](https://forum.makecode.com/u/teach421)\
**Post date:** [May 29, 2024, 10:30pm UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/3 "2024-05-29T22:30:20Z")

</div>

Use the Timers plugin. It has a couple of blocks that work perfect for a cool down.

---

<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:** [May 29, 2024, 10:30pm UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/4 "2024-05-29T22:30:22Z")

</div>

@quix your link doesn’t work. You have to click the button that says share to have the link of your game then, else it is not going to appear.

---

<div class="post-metadata">

**Author:** ![quix](https://avatars.discourse-cdn.com/v4/letter/q/9de053/32.png) [@quix](https://forum.makecode.com/u/quix)\
**Post date:** [May 30, 2024, 5:23am UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/5 "2024-05-30T05:23:01Z")

</div>

Sorry about that but I’ve gotten the cooldown to work now I’m just trying to make it go faster every 25 kills

> **[Assingment pt2](https://arcade.makecode.com/S33962-41301-39825-76573)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![quix](https://avatars.discourse-cdn.com/v4/letter/q/9de053/32.png) [@quix](https://forum.makecode.com/u/quix)\
**Post date:** [May 30, 2024, 5:24am UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/6 "2024-05-30T05:24:12Z")

</div>

Sorry about that but I’ve gotten the cooldown to work now I’m just trying to make it go faster every 25 kills

> **[Assingment pt2](https://arcade.makecode.com/S33962-41301-39825-76573)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![pecan4pi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/pecan4pi/32/20940_2.png) [@pecan4pi](https://forum.makecode.com/u/pecan4pi)\
**Post date:** [May 30, 2024, 5:04pm UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/7 "2024-05-30T17:04:45Z")

</div>

(sorry if this isn’t the most helpful, I’m trying to work on my “helping people code skills)” Welcome to the forum @quix! 😃

You want throw a change “`variable` by `X`” into an “on `sprite` of kind `player` overlaps with `othersprite` of kind `enemy`” block. Then put an “if `variable` ≥ to 25 then [insert thing you want it to do here]” after the “change `variable` by `X`” block

good luck with your game!  
-pecan4

---

<div class="post-metadata">

**Author:** ![quix](https://avatars.discourse-cdn.com/v4/letter/q/9de053/32.png) [@quix](https://forum.makecode.com/u/quix)\
**Post date:** [May 30, 2024, 5:10pm UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/8 "2024-05-30T17:10:02Z")

</div>

Sorry about that but ive gotten the cool down to work im just trying to make the fire rate go faster every 25 kills [https://arcade.makecode.com/S33962-41301-39825-76573](https://arcade.makecode.com/S33962-41301-39825-76573)

---

<div class="post-metadata">

**Author:** ![quix](https://avatars.discourse-cdn.com/v4/letter/q/9de053/32.png) [@quix](https://forum.makecode.com/u/quix)\
**Post date:** [May 31, 2024, 12:57pm UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/9 "2024-05-31T12:57:04Z")

</div>

i apreciate your help but it dosent quite work for me i may be doing it wrong but it just dosent work

---

<div class="post-metadata">

**Author:** ![quix](https://avatars.discourse-cdn.com/v4/letter/q/9de053/32.png) [@quix](https://forum.makecode.com/u/quix)\
**Post date:** [May 31, 2024, 1:04pm UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/10 "2024-05-31T13:04:15Z")

</div>

How dose it work?

---

<div class="post-metadata">

**Author:** ![teach421](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/teach421/32/12978_2.png) [@teach421](https://forum.makecode.com/u/teach421)\
**Post date:** [May 31, 2024, 4:25pm UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/11 "2024-05-31T16:25:53Z")

</div>

Try using the “For ‘action’ at most once every ‘xxx’” block. Basically the things that are inside the block can only be done once every XXX number of mseconds. So if you put in 2500 for the amount of time, the things inside that block can only happen once every 2.5 seconds.

---

<div class="post-metadata">

**Author:** ![quix](https://avatars.discourse-cdn.com/v4/letter/q/9de053/32.png) [@quix](https://forum.makecode.com/u/quix)\
**Post date:** [June 3, 2024, 12:53am UTC](https://forum.makecode.com/t/how-to-add-cool-down/28992/12 "2024-06-03T00:53:42Z")

</div>

Oh cheers mate it works like a charm!
