I am currently doing something like this. I am attempting to scale the frames that would be used for animation. Since the object SpriteFrame does not have the setscale method. I am creating an a Sprite type and then scaling that. After scaling the sprite I am using that to create a frame. However it seems that is not working. I know I could scale the character that would run this action but instead I would like to go this way if possible. Any suggestions on why this is not working ?
this->a_animation=Animation::create();
for(int i=0;i<=7;i++)
{
char szName[100]={0};
sprintf(szName,"image%d.png",i);
Sprite* s = Sprite::createWithSpriteFrame(SpriteFrameCache::getInstance()->getSpriteFrameByName(szName));
s->setScale(0.4);
SpriteFrame* f = s->getSpriteFrame();
this->a_animation->addSpriteFrame(f);
}
this->aAction = RepeatForever::create( CCAnimate::create(this->a_animation) );