goldlion gd AnimatePacker for mac/win32 v1.1 build1
Posts 7
Added by goldlion gd about 1 year ago

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

Jose Antonio Andujar RE: AnimatePacker for mac/win32 v1.1 build1
Posts 82
Location Spain
Added by Jose Antonio Andujar about 1 year ago

very usefull tool. Thank's goldlion!!

You must provide some "example code" for loading the animation generated.

I upload an screenshot of the tool.

animatePacker.png (41.1 kB)

http://www.jandusoft.com
More than 7m downloads of my first game "Guess the Character"

goldlion gd RE: AnimatePacker for mac/win32 v1.1 build1
Posts 7
Added by goldlion gd about 1 year ago

If you want to view some example code for AnimatePacker,it's in the "AnimatePacker Tutorial ":)

Jose Antonio Andujar RE: AnimatePacker for mac/win32 v1.1 build1
Posts 82
Location Spain
Added by Jose Antonio Andujar about 1 year ago

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("animation.xml");
CCSprite *sprite=CCSprite::spriteWithSpriteFrameName("firstFrame.png");
sprite->setAnchorPoint(CCPointZero);
sprite->setPosition(ccp(size.width/2, size.height/2));
sprite->runAction(CCRepeatForever::actionWithAction(AnimatePacker::getInstance()->getSequence("actionName")));
addChild(sprite,1);

@

http://www.jandusoft.com
More than 7m downloads of my first game "Guess the Character"

goldlion gd RE: AnimatePacker for mac/win32 v1.1 build1
Posts 7
Added by goldlion gd about 1 year ago

Oh~I must provide a html file for it,next time.

Herman Jakobi RE: AnimatePacker for mac/win32 v1.1 build1
Posts 113
Added by Herman Jakobi 10 months ago

Modified the AnimatePacker class so it can work with Cocos2d-x V1.0.1 -0.0.13

jimi yuren RE: AnimatePacker for mac/win32 v1.1 build1
Posts 9
Added by jimi yuren 9 months ago

Modified the AnimatePacker class so it can work with Cocos2d-x V2.*


(1-6/6)