Effect for sprites intersections

How can I reach that effect?
Sprite A intersects with sprite B. Intersection area for sprite A should become partially transparent.

inter

Hi,
Sprite alpha can be changed on the total sprite area or corners, but not a specific area.
You can try adding blend to sprite A when overlap occurs, but it will affect all the sprite A area, so depending on the background you can have good results…or not…

That method is not suitable - there is a background in this case.
The final goal of that is partial sprite display behind the obstacle (normal display for non overlapped area and special display for overlapped area)

Hi @knighter ,
One possible solution would be make an scene only for those objects and draw that scene in a renderTexture. With some blend mode (ex: add, screen …) could work.
Something like this:

Regards.

1 Like

Perhaps multiples cameras can works too

You could do some effects with a dummy sprite and setCrop(). But not transparency.