Use a group of shapes as a mask to a single static sprite

Seems like my other post was quite unclear, so here’s a gif or what I want to achieve, made in… Illustrator
Untitled-1_-100-RGB_GPU-Preview-15_03_2018-20_33_50

I’m combining multiple shapes and then making them as a mask to another sprite, and when I move these shapes (wich will be linked to the player’s inputs), the background sprite souldn’t move

Just like in the gif, is there any way to achieve that ?