So, I have a problem which has been twisting my brain for AGES. It has to do with the particle system. So, I made a list called “Knockable Tile Position” which tracks what's the X and Y of a Knockable tile (Trash can). Because that way, spawning particles like the FALLING trash cans in the X and Y of the trash can clone would be easy. I found a nice solution that solved only part of the problem. But the flaw about that was that you HAD to hit the trash cans in the order of the list for the particles for it to spawn correctly. Next I tried adding a column for every tile on the screen (Including air/empty), and then any tile that's a trash can and touched by a player would spawn the particle in the X and Y of the trash can and from right column. But I can't think of a solution for tracking which column is for which trash can clone.

The main part of the problem is in the Tiles sprite and the Particles sprite. There are important stuff in the player sprite too.

Link: https://scratch.mit.edu/projects/981475947/