欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

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   //六个表情的资源
相关标签: 游戏开发