开发者

Erasing Image in xcode/cocos2d

I have an image paced on the screen.If the user开发者_如何学JAVA select the eraser and erase the image,it should be erased.How can i do that.


Fake it? Put a sprite same color as the background over it.. Means a layer on top of the previous sprite..


If it is a CCNode subclass (CCSprite for example) call

[myImage removeFromParentAndCleanUp: YES];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜