# Timer Stopping Code

**URL:** <https://forum.makecode.com/t/timer-stopping-code/26057>\
**Category:** Help\
**Created:** [January 17, 2024, 6:25pm UTC](https://forum.makecode.com/t/timer-stopping-code/26057 "2024-01-17T18:25:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chickennuggetTRS](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chickennuggettrs/32/12947_2.png) [@chickennuggetTRS](https://forum.makecode.com/u/chickennuggetTRS)\
**Post date:** [January 17, 2024, 6:25pm UTC](https://forum.makecode.com/t/timer-stopping-code/26057/1 "2024-01-17T18:25:16Z")

</div>

Im making an arcade game, and have button A as a projectile, I am trying to now add a button B projectile that you can only press after 30 seconds each time. However, if i add the normal timer it just stops the code and won’t let me launch the thing. If anyone can help, please do

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [January 17, 2024, 7:07pm UTC](https://forum.makecode.com/t/timer-stopping-code/26057/2 "2024-01-17T19:07:30Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/d69f09dd3852a586dc2e4a0b42e883c57242c709.png)  
Welcome to the forums!  
Go to extensions and add the timer extension. You can use the top block to make your projectile shoot only after 30s (30,000ms) This block is also useful for invincibility frames and general convenience when registering button spamming.
