I\'m reading around the web and the documentation but to be honest, I don\'t get it. Since I\'m new to cocos2d-x I would like to understand better how the objects are create
Sorry,my English is poor!
1.The this->sprite will be auto release when CCLayer destroy if you call CCSprite::create(...); and addChild(...); .
this->sprite
CCSprite::create(...);
addChild(...);
2.if you want remove this->sprite sometimes ,you could call this:
this->sprite->removeFormParents(); this->sprite=NULL;