# How to make recurring events?

**URL:** <https://forum.makecode.com/t/how-to-make-recurring-events/22595>\
**Category:** Arcade\
**Tags:** game\
**Created:** [September 18, 2023, 6:21pm UTC](https://forum.makecode.com/t/how-to-make-recurring-events/22595 "2023-09-18T18:21:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Computedduke586](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@Computedduke586](https://forum.makecode.com/u/Computedduke586)\
**Post date:** [September 18, 2023, 6:21pm UTC](https://forum.makecode.com/t/how-to-make-recurring-events/22595/1 "2023-09-18T18:21:48Z")

</div>

I am making a bonus heart spawn in my game, but i cant find anything that lets me do something every 5 points. I have searched everywhere online, and I can’t find anything. If there is a block for that, or extension, I would love to see it.

---

<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:** [September 18, 2023, 6:43pm UTC](https://forum.makecode.com/t/how-to-make-recurring-events/22595/2 "2023-09-18T18:43:59Z")

</div>

Set another variable, and change it with your score. When the score reaches 5 reset the variable to 0 and spawn the bonus heart. (Assuming the score increments by 1)

---

<div class="post-metadata">

**Author:** ![Computedduke586](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@Computedduke586](https://forum.makecode.com/u/Computedduke586)\
**Post date:** [September 18, 2023, 9:04pm UTC](https://forum.makecode.com/t/how-to-make-recurring-events/22595/3 "2023-09-18T21:04:51Z")

</div>

Thank you! one thing is, when i am coding the game, i use the block “Destroy Variable” not sure if this is affecting the later spawns, but after the first one, none of them will spawn. Is the destroy block affecting that? If not, what could be?

---

<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:** [September 18, 2023, 9:36pm UTC](https://forum.makecode.com/t/how-to-make-recurring-events/22595/4 "2023-09-18T21:36:12Z")

</div>

No it shouldn’t affect it unless its running constantly

---

<div class="post-metadata">

**Author:** ![Computedduke586](https://avatars.discourse-cdn.com/v4/letter/c/6bbea6/32.png) [@Computedduke586](https://forum.makecode.com/u/Computedduke586)\
**Post date:** [September 18, 2023, 10:04pm UTC](https://forum.makecode.com/t/how-to-make-recurring-events/22595/5 "2023-09-18T22:04:37Z")

</div>

let me show you the code. It is the best way i could think of, but I am open to if you give improvement ides

 ![Opera Snapshot_2023-09-18_155928_arcade.makecode.com](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/02954ce754d391c79aa7f7b45bf0f90fddb8193d.png)

---

<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:** [September 18, 2023, 11:13pm UTC](https://forum.makecode.com/t/how-to-make-recurring-events/22595/6 "2023-09-18T23:13:06Z")

</div>

I think it’s the pause until false block
