开发者

Erasing Image in xcode/cocos2d

开发者 https://www.devze.com 2023-02-25 02:15 出处:网络
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.

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

精彩评论

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