I’m working on a project where I need to implement a unique visual feature: when two or more objects intersect, they should share a common outline instead of maintaining separate outlines. This effect aims to create a more unified and visually appealing interaction between the objects.
Here’s what I’m looking to achieve:
- When objects are separate, they have their own distinct outlines.
- Upon intersection, these objects blend their outlines to form a single, shared outline.
- The shared outline should smoothly adapt to the shape created by the intersecting objects.
I’m seeking advice or suggestions on how to best approach this in Defold. Has anyone here worked on a similar feature or could provide insights into how to manipulate object outlines in this manner? Now i1m just having a layer under everything with duplicated graphics of sprites, but in black mode. Maybe there is an easy way.