Shader help: Turn sprite pixels invisible when drawn over the background.

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

How would I go about changing a sprite’s pixels to be invisible when drawn over the game’s background? I’d like to do some foreground parallax work, but don’t want those elements appearing anywhere except over the parts of the level I’ve drawn in. Thanks!