Hello, i need your advice, what are you doing when you need to animate something? What are the steps? what programs do you use? How do you implement it in your code?
Currently, my steps are:
1) paint some frames, same size.
2) generate one .plist and one .png file from zwoptex flash version
3) include them to resources
4) run it with the code:
CCSpriteBatchNode *spritesheet = CCSpriteBatchNode::batchNodeWithFile("texture0.png");
CCMutableArray *frames = new CCMutableArray;
for (int i = 1; i <= 8; i++)
CCAnimation* animation = CCAnimation::animationWithFrames(frames);
CCAnimate *theAnim = CCAnimate::actionWithDuration(1.8f, animation, true);
CCAction* runAction = CCRepeatForever::actionWithAction(theAnim);
CCSprite* plrSprite = CCSprite::spriteWithSpriteFrameName("pic1.png");
What do think of this \^\^? If you know more efficient way to create animation, please share. Thank You.