# Need a little help with a thing

**URL:** <https://forum.makecode.com/t/need-a-little-help-with-a-thing/3861>\
**Category:** Help\
**Created:** [October 12, 2020, 7:02pm UTC](https://forum.makecode.com/t/need-a-little-help-with-a-thing/3861 "2020-10-12T19:02:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)\
**Post date:** [October 12, 2020, 7:02pm UTC](https://forum.makecode.com/t/need-a-little-help-with-a-thing/3861/1 "2020-10-12T19:02:13Z")

</div>

I have this idea of making it so that a status bar will fill up as long as you hold the B button down, but there’s no option to do that on the button pressed options. Does anyone know of an extension or some other way to do this?  
 ![Screenshot 2020-10-12 at 12.01.43 PM](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/0d2bb7b171eb0cf2a51eb48f42d5cd19ea4d527d.png)

---

<div class="post-metadata">

**Author:** ![GameGod](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/gamegod/32/2756_2.png) [@GameGod](https://forum.makecode.com/u/GameGod)\
**Post date:** [October 12, 2020, 7:15pm UTC](https://forum.makecode.com/t/need-a-little-help-with-a-thing/3861/2 "2020-10-12T19:15:24Z")

</div>

on game update every 100 ms , if b pressed, change by 1

---

<div class="post-metadata">

**Author:** ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)\
**Post date:** [October 12, 2020, 7:24pm UTC](https://forum.makecode.com/t/need-a-little-help-with-a-thing/3861/3 "2020-10-12T19:24:15Z")

</div>

Nevermind i figured it out thanks!!

---

<div class="post-metadata">

**Author:** ![FlintAsher](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/flintasher/32/2745_2.png) [@FlintAsher](https://forum.makecode.com/u/FlintAsher)\
**Post date:** [October 12, 2020, 7:32pm UTC](https://forum.makecode.com/t/need-a-little-help-with-a-thing/3861/4 "2020-10-12T19:32:20Z")

</div>

Thank you for the tip!! It helped a lot! ❤

---

<div class="post-metadata">

**Author:** ![jwunderl](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/jwunderl/32/5308_2.png) [@jwunderl](https://forum.makecode.com/u/jwunderl)\
**Post date:** [October 12, 2020, 7:39pm UTC](https://forum.makecode.com/t/need-a-little-help-with-a-thing/3861/5 "2020-10-12T19:39:08Z")

</div>

We actually have another way to do this built in; in that button drop down, there’s another option, `repeat`:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/6a69e306c13a1a8709d00c41c771d82fe831ee7f.png)

This one repeats the event at a defined interval - by default the behavior is that it waits for .5 seconds after the button is pressed, then repeats every 30ms.

This can be configured with a block from the controller extension:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/ab00083904eca37d84a8f0e826c8c10e04046fee.png)

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/a/aa27cb146b8d84ef1a46532ad4af84163acf3c52.png)

With this one, you can set the delay (until it first runs) and the interval – for example, if you want it to run immediately and increment the score / count every 30ms, you can do this:

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/951541ceb5fa702661c989ff9aaa1a8ab905ec33.png)
