popple

  • 25 фев 2014
  • Регистрация: 9 июн 2013

    now, we are upgrade to 1.7 automatic.

    it's not good for my project. cause runtime not ready, cause not compatible ver1.6 。my art designer and developer separate ways 。。 help...

    OH ,Nate love u.. it's amazing.. it's work fine.. :yes:

    even 100skins can u random the config?

    thank u very much

    • Изменено

    there is a mmorpg game, we need change skin runtime,and dynamic.

    problem is so many avatar(equipments) can't package in one texture.. so Skin Function only build with IDE and only play with goblins? there is other way to solve my problem? i can't back to cocosbuilder. i like spine. :shake:

    got it bone->getSlot ->getAttachment if(type==BOUDINGBOX) read verticles

    • Изменено

    if a bone bind a polygon boudingbox , which API can get it?

    • Изменено

    help, i forget what "Adjust" key can do...

    • Изменено

    somebody tell me where is skew tool? i need it.

    oh no. sorry...

    it's caused by a pointer error 😃 it's works fine。

    try remove this line skeletonNode2->setAnimation("walk", true);

    • Изменено

    createWithFile("spineboy.json", "spineboy.atlas")

    i tryed to create two SkeltonAnimation object with same file like"spineboy".

    but it's not work. some bugs..in update

    void CCSkeletonAnimation::update (float deltaTime) {
    super::update(deltaTime);

    deltaTime *= timeScale;
    for (std::vector<AnimationState*>::iterator iter = states.begin(); iter != states.end(); ++iter) {
    	AnimationState_update(*iter, deltaTime);  //this line
    	AnimationState_apply(*iter, skeleton);
    }
    Skeleton_updateWorldTransform(skeleton);

    }

    but, if addChild in one CCNode then no bug..

    how can i get a same one?

    • Изменено

    class CCSkeletonAnimation: public CCSkeleton {
    public:
    std::vector<AnimationState*> states;

    how can i get information of states?

    in sample, states[0] used to about time,loop state. but,my question is how can i know about states[1] ???

    where are states come from?

    other question:
    how can i know animation's duration? there's 5 sec,3sec. where from?

    do we have API reference of Spine runtime?

    void ExampleLayer::update (float deltaTime) {
    CCLog("%f",skeletonNode->states[0]->time );
    if (skeletonNode->states[0]->loop) {
    if (skeletonNode->states[0]->time > 5) skeletonNode->setAnimation("jump", false);
    } else {
    if (skeletonNode->states[0]->time > 3) skeletonNode->setAnimation("walk", true);
    }