How to create heart break effects with particles 2D?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By cookieoil

I’m currently making a 2D action topdown game. My intend is to make glass shadow effects for the player hearts (health) whenever they go from full to empty, which are exactly like this video

I have no problem recreating the particles2D, but as a beginner, I have no ideas how to apply it into code. Hope anybody can give me some clues in order to recreate the effects into my game, thank you and wish you have a wonderful day.