I’m making a platformer with a world composed of different blocks. I’m trying to create a shatter effect when the player breaks a block or lands at high speed (similar to Minecraft), with fragments of the block sprite being scattered out.
Currently, I’m using a spritesheet containing the block particles and emitting them with random frames. This works, but the issue is I would need a set of particle sprites for every single block type, which would be difficult long term.
Is there a better way of doing this? Would it be possible to dynamically create these particles from segments of the block’s sprite?
Thanks