Forum > Extensions > AnimatePacker for mac/win32 v1.1 build1

AnimatePacker for mac/win32 v1.1 build1

By goldlion Posted 2012-05-18 02:46 Comments 6
goldlion
  • Posts: 9

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

jandujar
  • Posts: 175
  • Location: Spain

#1 RE: 2012-05-18 05:51

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 10m downloads of my first game "Guess the Character"

goldlion
  • Posts: 9

#2 RE: 2012-05-18 07:46

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

jandujar
  • Posts: 175
  • Location: Spain

#3 RE: 2012-05-18 08:02

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);

@

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

goldlion
  • Posts: 9

#4 RE: 2012-05-18 08:18

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

festival
  • Posts: 119
  • Location: Germany

#5 RE: 2012-07-17 09:44

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

It works, ship it!

yurenjimi
  • Posts: 10

#6 RE: 2012-08-15 06:29

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

Loggin to reply

Copyright © 2010 - 2013 Cocos2d-x.orgClustrmaps