openGlBlending in cocos studio 2

Hi!

I try to achieve the following effect

As you can see there is a background and a foreground image. The background image is the grass/meadow thing and the foreground image are two flamingo.
The background should only be visible when the foreground image is directly above it. The foreground image is fully hidden and only the background can be seen.

As you can see Source is set to GL_ZERO and Destination is set to GL_SRC_ALPHA.

Okay, now I tried it with cocos studio 2.2.9.


The background (the wooden floor) should only be visible when the stickman-sprite is above it. In the example above I was setting one GL_ZERO and one GL_SRC_ALPHA value. But now I can set GL_ZERO and GL_SRC_ALPHA for both sprites. I tried a lot of combinations but wasn’t able to get it working. I think I need to set the background-alpha to 1 (or 0, don’t know which one right now) so that it’s hidden and the foreground-alpha to 0 (or 1…) so that it’s shown. Right?

Any advice?

same problem