auto sprite = Sprite::create(“helloworld.png”);
sprite->setPosition(Vec2(visibleSize.width / 2 + origin.x, visibleSize.height / 2 + origin.y));
this->addChild(sprite, 0);
AnimationCache* cache = AnimationCache::getInstance();
cache->addAnimationsWithFile(“Walk.plist”);
Animation* animation2 = cache->getAnimation(“Walk.png”);
Animate* action2 = Animate::create(animation2);
sprite->runAction(Sequence::create(action2, action2->reverse(), NULL));
请问代码有问题么?换了很多plist文件都不行,当然,getAnimation里面的名字和plist里面的名字都是相符的。两个文件的文件名也是一样的。
plist里的realTextureFileName和textureFileName也是没问题的 到底为什么呢?
难道说…………………… 在windows下 不能运行有 plist 的项目?

坐等高人啦~~~~~~~~~~~~~