Hi @marcin,
In this case, I think you may try the following:
- create two display objects which are the entire puzzle image, overlaying each other exactly.
- create the required puzzle masks, so that you have the “shown piece” in white on the mask, and everything else black (so the outlying regions will be hidden).
- for the proper piece to be shown, apply that mask to the front image.
- at the same time, place a black vector rectangle between the front image and back image, starting at alpha of 0.
- transition that rectangle to around 90% opacity in a transition, so that the back image appears darkened out, while the front (masked) piece remains illuminated.
There will be some other interesting methods available in the upcoming Graphics 2.0 engine, including the ability to apply Photoshop-like filter and blending effects (like darken) to display objects.
Sincerely,
Brent Sorrentino