我用TP将游戏所有的小图生成到一张大图里。
开始用这样的方法加载木有问题
CCSpriteFrameCache::sharedSpriteFrameCache()->addSpriteFramesWithFile("big.plist"); CCSpriteBatchNode* node=CCSpriteBatchNode::create("big.png"); this->addChild(node); ``` 由于big.png很大,加载的时候会卡屏。 所以我换成了这个CCTextureCache::sharedTextureCache()->addImageAsync("big.png", this, callfuncO_selector(GameScene::loadingOver)); ``` 但是调用里面的小图片的时候就出错了Assert failed: Invalid spriteFrameName:xx.png....Assertion failed: (pFrame != __null), function createWithSpriteFrameName, 这样异步加载有什么问题吗?