I tried your suggestion, but it didn’t work. The sparkles aren’t positioned on top of any of the enemies, just all over the screen.
However, I tried the other option on the top of your most recent suggestion…
…and it ALMOST works! The sparkles are positioned on each enemy I have on screen, and they even scale up accordingly to their size, width, height, EVERYTHING.
However, there is one small problem left… the sparkles are positioned to the bottom right side of the pivot point of my sprites, so the sparkles are a little bit off centered.
This is probably a stupid question, but how do I center the sparkles? Do I put “center” or “centre” in the parameter of FrozenGuy.X()?
Thanks btw