I’ll try make it simple
-
imagine a deep-space background with distant stars.
-
foreground is populated by planets
-
planets cast shadows that extend way out which is essentially a black shape with transparency.
The problem is I only want this “shadow zone” to cover any objects in the foreground (like the blob player) and NOT the space beyond in the background.
Basically can I make a display object only appear while it intersects with another? As in I want that black box in the image attached to only appear when a foreground object intersects with it. I imagine this is not possible? The masking features are pretty primitive right? especially since the character is actually drawn with code…