If I want to have a portion of a large image only displaying through the alpha channel of a sprite which was been created from a png with transparency (e.g. a black jigsaw piece on a transparent background), is this possible using the existing sprite class in 0.99 final?
an explanation of the problem using layers:
layer 1 - background image
layer 2 - sprite created from a png with transparency (jigsaw piece)
layer 3 - the user sees only the portion of the background image visible through the jigsaw piece which acts as a mask. None of the rest of the background image is visible.
Does anyone have a definitive answer on this? The docs / forum posts are either out of date / non-existent / confusing.
To be clear, don't want a 'scratch off' example or texture blending (I don't think ;-). I have looked at the examples and searched extensively on google and the forums. I just want to know if the above is possible and , if so, which classes / methods I should be using in the latest version of cocos2d.
This post says I would need to subclass sprite. Is this the only way to achieve this?
http://www.mailinglistarchive.com/cocos2d-iphone-discuss@googlegroups.com/msg03112.html
Many thanks for any replies!