Bone *lParentBone = m_pAnimature->getBone(“ParentBone”);
Bone *ChildlBone = Bone::create(“1.png”);
lParentBone->addChildBone(ChildlBone);
请问不能这样使用吗?或者我使用的方法不对?
我只是想实现,在原先的骨骼上添加一个骨骼;
Bone *lParentBone = m_pAnimature->getBone(“ParentBone”);
Bone *ChildlBone = Bone::create(“1.png”);
lParentBone->addChildBone(ChildlBone);
请问不能这样使用吗?或者我使用的方法不对?
我只是想实现,在原先的骨骼上添加一个骨骼;
已解决,官方demo有类似的栗子;
ParticleSystem *p1 = CCParticleSystemQuad::create("Particles/SmallSun.plist");
ParticleSystem *p2 = CCParticleSystemQuad::create("Particles/SmallSun.plist");
cocostudio::Bone *bone = cocostudio::Bone::create("p1");
bone->addDisplay(p1, 0);
bone->changeDisplayWithIndex(0, true);
bone->setIgnoreMovementBoneData(true);
bone->setLocalZOrder(100);
bone->setScale(1.2f);
armature->addBone(bone, "bady-a3");
bone = cocostudio::Bone::create("p2");
bone->addDisplay(p2, 0);
bone->changeDisplayWithIndex(0, true);
bone->setIgnoreMovementBoneData(true);
bone->setLocalZOrder(100);
bone->setScale(1.2f);
armature->addBone(bone, "bady-a30");