how to remove children in cocos2d, is there more that one way?
Hello I am making a Cocos2d side scroller. I have a CCSprite that I add
using the [self addChild:sprite]; method. After a while I want the
CCSprite to be removed. I tried the [self removeChild:sprite cleanup:YES];
method and it gave me a thread bad access error. Is this the only way to
remove a child in Cocos2d?? Is there an alternate way?? I am a beginner to
Cocos2d and objective c so any help is valuable.
No comments:
Post a Comment