Spawning projectiles from a tilemap block i need help

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.

2 Likes

Can you send the link to your game?

1 Like

Hey! Welcome to the makecode community

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

Yellow
image
Cyan
Slightly different but saves a little data
image
Purple
my favorite that I use
Run that first piece of code and the other side will do all the work

All of this is possible because of this block
image
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)

2 Likes

nice.