Could anyone help me out in creating a simple animation?
I have 3 png files ready to be animated.
Currently this is the code that I have I just tried to copy and convert from a cocos2d book unfortunately I don’t know how to run it.
CCSprite* sideKick = CCSprite::spriteWithFile("heroDownStand.png");
sideKick->setPosition(ccp(winSize.width/2,winSize.height/2));
this->addChild(sideKick);
CCAnimation* sideKickMoveDown = CCAnimation::animation();
sideKickMoveDown->addFrameWithFileName("heroDownWalk1.png");
sideKickMoveDown->addFrameWithFileName("heroDownWalk2.png");
CCFiniteTimeAction* sideKickMoveDownAction = CCAnimate::actionWithDuration((ccTime)0.5f,sideKickMoveDown,true);