# Spawning projectiles from a tilemap block i need help

**URL:** <https://forum.makecode.com/t/spawning-projectiles-from-a-tilemap-block-i-need-help/24320>\
**Category:** Help\
**Tags:** game\
**Created:** [November 16, 2023, 9:28pm UTC](https://forum.makecode.com/t/spawning-projectiles-from-a-tilemap-block-i-need-help/24320 "2023-11-16T21:28:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![fillius57](https://avatars.discourse-cdn.com/v4/letter/f/b19c9b/32.png) [@fillius57](https://forum.makecode.com/u/fillius57)\
**Post date:** [November 16, 2023, 9:28pm UTC](https://forum.makecode.com/t/spawning-projectiles-from-a-tilemap-block-i-need-help/24320/1 "2023-11-16T21:28:27Z")

</div>

I’m trying to make a 2D plat former and am having trouble with spawning projectiles from a tilemap block i have been stuck on this for a few days.

---

<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:** [November 16, 2023, 11:21pm UTC](https://forum.makecode.com/t/spawning-projectiles-from-a-tilemap-block-i-need-help/24320/2 "2023-11-16T23:21:17Z")

</div>

Can you send the link to your game?

---

<div class="post-metadata">

**Author:** ![ADM\_F](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/adm_f/32/19808_2.png) [@ADM\_F](https://forum.makecode.com/u/ADM_F)\
**Post date:** [November 17, 2023, 6:38pm UTC](https://forum.makecode.com/t/spawning-projectiles-from-a-tilemap-block-i-need-help/24320/3 "2023-11-17T18:38:50Z")

</div>

Hey! Welcome to the makecode community

So I made a game that has 3 ways of solving your problem

> **[Spawn From tile](https://arcade.makecode.com/S32723-26820-35632-59314)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

Yellow  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/d/da737d929e9e833d37a28e8dbce8c4b820ce9efc.png)  
Cyan  
Slightly different but saves a little data  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/9e3e4c27e9841a8ba2187b216425d3fbea335fe3.png)  
Purple  
my favorite that I use  
Run that first piece of code and the other side will do all the work

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

All of this is possible because of this block  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/8/82c7564536e76bf0615683f3b18f467f62ca4019.png)  
It takes an array and for each value of that array it copies the code to each so you can place a UNLIMITED AMOUNT OF TILES THAT FIRE  
(your game will still lag if you add to much) (about 70 in my testing)

---

<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:** [November 20, 2023, 6:47pm UTC](https://forum.makecode.com/t/spawning-projectiles-from-a-tilemap-block-i-need-help/24320/4 "2023-11-20T18:47:51Z")

</div>

nice.
