Is there an easy way to programatically create an inverted
mask? I have a large sprite with a smaller sprite on top. If I mask
the large sprite with the smaller sprite it gets trimmed to the
small sprite's dimension. What if I wanted the larger sprite to
appear to have a hole cut out of it the size of the small
sprite?
Without knowing your true intentions, one option is to just
make the smaller sprite the same color as the background behind the
larger sprite and forget the mask.
you could use the 'smaller' sprite to mask the moving object,
and not the mask the larger sprite - in this way it will 'appear'
as thought there is a hole in the larger object 😉