# Figured out how to do a flamethrower effect using arrays

**URL:** <https://forum.makecode.com/t/figured-out-how-to-do-a-flamethrower-effect-using-arrays/23167>\
**Category:** Arcade\
**Created:** [October 9, 2023, 5:57pm UTC](https://forum.makecode.com/t/figured-out-how-to-do-a-flamethrower-effect-using-arrays/23167 "2023-10-09T17:57:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hello1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hello1/32/20533_2.png) [@Hello1](https://forum.makecode.com/u/Hello1)\
**Post date:** [October 9, 2023, 5:57pm UTC](https://forum.makecode.com/t/figured-out-how-to-do-a-flamethrower-effect-using-arrays/23167/1 "2023-10-09T17:57:03Z")

</div>

> **[Flamethrower Test](https://arcade.makecode.com/S56445-45998-91711-54701)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

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

---

<div class="post-metadata">

**Author:** ![Mega0star01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mega0star01/32/14784_2.png) [@Mega0star01](https://forum.makecode.com/u/Mega0star01)\
**Post date:** [October 9, 2023, 10:01pm UTC](https://forum.makecode.com/t/figured-out-how-to-do-a-flamethrower-effect-using-arrays/23167/2 "2023-10-09T22:01:43Z")

</div>

nice.

---

<div class="post-metadata">

**Author:** ![Brohann](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brohann/32/17380_2.png) [@Brohann](https://forum.makecode.com/u/Brohann)\
**Post date:** [October 10, 2023, 4:48pm UTC](https://forum.makecode.com/t/figured-out-how-to-do-a-flamethrower-effect-using-arrays/23167/3 "2023-10-10T16:48:57Z")

</div>

it would be simpler to use sinusoidal waves, but this works too

---

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [October 10, 2023, 6:39pm UTC](https://forum.makecode.com/t/figured-out-how-to-do-a-flamethrower-effect-using-arrays/23167/4 "2023-10-10T18:39:21Z")

</div>

> [@Brohann](#):
>
> sinusoidal waves

sinuso-what???

---

<div class="post-metadata">

**Author:** ![Taser](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/taser/32/29517_2.png) [@Taser](https://forum.makecode.com/u/Taser)\
**Post date:** [October 10, 2023, 9:33pm UTC](https://forum.makecode.com/t/figured-out-how-to-do-a-flamethrower-effect-using-arrays/23167/5 "2023-10-10T21:33:48Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/8f246a837fabb0bdee74b03b545473bf567fc33b.png)  
something like this  
y = A sin ⁡ ( x − h ) + k  
@ChimbroDaPro

---

<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:** [October 10, 2023, 10:06pm UTC](https://forum.makecode.com/t/figured-out-how-to-do-a-flamethrower-effect-using-arrays/23167/6 "2023-10-10T22:06:13Z")

</div>

Or just make it random but constrain the max and min values

---

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [October 10, 2023, 11:09pm UTC](https://forum.makecode.com/t/figured-out-how-to-do-a-flamethrower-effect-using-arrays/23167/7 "2023-10-10T23:09:43Z")

</div>

W-woah… 😵
