2 行目以降のアニメーションが「Function 'animation' cannot be resolve」というエラーとして表示されるのはなぜですか?
CCSprite * sprite = CCSprite::create("start.png");
CCAnimation * anim = CCAnimation::animation();
anim->addSpriteFrameWithFileName("start.png");
anim->addSpriteFrameWithFileName("take.png");
anim->addSpriteFrameWithFileName("action.png");
anim->setLoops(1);
anim->setDelayPerUnit(0.1f);
sprite->runAction(CCAnimate::create(anim));
sprite->setPosition(ccp(450,425));
this->addChild(sprite, -1);
float cX = size.width / sprite->getContentSize().width/1.8;
float cY = size.height / sprite->getContentSize().height/1.2;
sprite->setScaleX(cX);
sprite->setScaleY(cY);