Goals:
1.Support cocos2d-x animation development.
2.Beginners can develop simple games quickly with this tool.
3.Easy to use.
Operating Environment:
1.Cocos2d-x 8.5 above(not contain 8.5).Because we will use CCSAXParser class.
2.The “format” attribute in .plist file must be 2.
3.TexturePacker or Zwoptex
Link:
http://www.cocos2d-x.org/projects/cocos2d-x/assets/8
very usefull tool. Thank’s goldlion
You must provide some “example code” for loading the animation generated.
I upload an screenshot of the tool.
If you want to view some example code for AnimatePacker,it’s in the AnimatePacker Tutorial )
LOL, I missed to check the “AnimatePacker Tutorial” document. xD
Here is for those who doesn’t have “word”
@
Basic Steps:
1.Import xml,plist and png
2.Import AnimatePacker.cpp,AnimatePacker.h and Singleton.h
3.coding:
//In function of your layer class
AnimatePacker::getInstance()>loadAnimations;
CCSprite *sprite=CCSprite::spriteWithSpriteFrameName;
sprite>setAnchorPoint(CCPointZero);
sprite~~>setPosition);
sprite~~>runAction(CCRepeatForever::actionWithAction(AnimatePacker::getInstance()->getSequence(“actionName”)));
addChild(sprite,1);
@
Oh~I must provide a html file for it,next time.
Modified the AnimatePacker class so it can work with Cocos2d-x V1.0.1 –0.0.13
Modified the AnimatePacker class so it can work with Cocos2d-x V2.*