# Help with Directional Projectile Loops

**URL:** https://forum.makecode.com/t/help-with-directional-projectile-loops/21783
**Category:** Help
**Created:** [August 11, 2023, 4:42pm UTC](https://forum.makecode.com/t/help-with-directional-projectile-loops/21783 "2023-08-11T16:42:02Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![WoodysWorkshop](https://avatars.discourse-cdn.com/v4/letter/w/ea666f/32.png) [@WoodysWorkshop](https://forum.makecode.com/u/WoodysWorkshop)
#### Post date: [August 11, 2023, 4:42pm UTC](https://forum.makecode.com/t/help-with-directional-projectile-loops/21783/1 "2023-08-11T16:42:02Z")

</div>

Hi Coders! 🙂

I’ve been playing a game on Steam called “Vampire Survivors” and I want to recreate the projectile effect (see gif)

![GIF 11-08-2023 15-56-19](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/e/e8fd7c3daa62097a6ffffe6fadf0a7ca694cd09e.gif)

![arcade-Zombie-Survivor](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/f/fb41dad9f20c9588c4bd7f6199aa06477c26900f.png)

I think I need to use the timer block (from extensions) but I’m not sure how I can loop the projectiles so that they increase their firing speed/amount of projectiles from pickups.

Please advise 🙂

Woody

---

<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: [August 11, 2023, 5:07pm UTC](https://forum.makecode.com/t/help-with-directional-projectile-loops/21783/2 "2023-08-11T17:07:51Z")

</div>

If you’re making a vampire survivors type game check out [Sophie’s Castle Adventure (Vampire Survivor like game)](https://forum.makecode.com/t/sophies-castle-adventure-vampire-survivor-like-game/14500) or my take [Robot Survival v10-5](https://forum.makecode.com/t/robot-survival-v10-5/19073)

---

<div class="post-metadata">

### Author: ![WoodysWorkshop](https://avatars.discourse-cdn.com/v4/letter/w/ea666f/32.png) [@WoodysWorkshop](https://forum.makecode.com/u/WoodysWorkshop)
#### Post date: [August 11, 2023, 5:08pm UTC](https://forum.makecode.com/t/help-with-directional-projectile-loops/21783/3 "2023-08-11T17:08:15Z")

</div>

> **[Zombie Survivor](https://arcade.makecode.com/76700-52924-16197-60351)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Better way to share the game so far so you guys can see the code 🙂

---

<div class="post-metadata">

### Author: ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)
#### Post date: [August 11, 2023, 5:24pm UTC](https://forum.makecode.com/t/help-with-directional-projectile-loops/21783/4 "2023-08-11T17:24:30Z")

</div>

You can use a forever block for this. Here’s some sample code for you:

> **[burst-fire-example](https://arcade.makecode.com/S62011-13521-98933-70897)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Press A to increase the number of projectiles in each burst, and press B to decrease the time between shots. That example also has comments in the code explaining things

---

<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: [August 11, 2023, 5:26pm UTC](https://forum.makecode.com/t/help-with-directional-projectile-loops/21783/5 "2023-08-11T17:26:43Z")

</div>

The code looks pretty solid just change the Projectile\_One\_Timer variable
