Hi. I am making a game where you can, among other gameplay mechanics, grab robots and dip them in lava. I have the enemies' sprites destroy themselves upon collision with lava but I want to go a step farther and actually have them disintegrate in the lava and destroy pixels that overlap with the lava instead of the whole thing. I made a diagram that shows what I mean:
Any help or tips would be appreciated. Thanks!