I’m sure there is no error in the location of the plist file and png image, why is this error still showing?
the code as follows:
SpriteFrameCache::getInstance()->addSpriteFramesWithFile("/protagonist_move/a.plist");
auto pSprite2 = Sprite::create();
pSprite2->setPosition(500, 600);
this->addChild(pSprite2,2);
Vector<SpriteFrame*>list;
list.reserve(2);
list.pushBack(SpriteFrameCache::getInstance()->getSpriteFrameByName("/protagonist_move/10001.png"));
list.pushBack(SpriteFrameCache::getInstance()->getSpriteFrameByName("/protagonist_move/10002.png"));
auto pAnimation = Animation::createWithSpriteFrames(list, 0.2f, 1000);
auto pAnimate = Animate::create(pAnimation);
pSprite2->runAction(pAnimate);
the errors as follows: