cocos2dx spine动画反转
程序员文章站
2024-03-16 15:56:22
...
SkeletonAnimation *m_pSpine= SkeletonAnimation::createWithJsonFile("spinefile.json", "spinefile.atlas", 1.0F);
//m_pSpineBrow->setSkin("skinname1");
//auto slot = spSkeleton_findSlot(m_pSpineBrow->getSkeleton(), "slotnamne1");
//auto slot1 = spSkeleton_findSlot(m_pSpineBrow->getSkeleton(), "slotnamne2");
//auto slot1atta = slot1->attachment;
//m_pSpine->setAttachment("spinefile", "spinefile");
m_pSpine->setSkin("skinname");
m_pSpine->getSkeleton()->flipX = 1;
m_pSpine->setAnimation(0, "aniname", true); //dk, dx,fn,qw,sj,xm //六个表情的资源