qwwq2021

使用是Cocos2dx的spine4.0运行时,播放逻辑如下:
SkeletonAnimation* node = SkeletonAnimation::createWithJsonFile("xingtai1_0602.json", "xingtai1_0602.atlas");
if(!node)
{
return;
}

node->setPosition(Vec2(1000,450));
node->setAnchorPoint(Vec2(0.5,0.5));
addChild(node, 2);
float delayTime = 2;
node->setAnimation(0, "idle", true);
node->addAnimation(0, "dazhangji", true, delayTime);
node->addAnimation(0, "shuijiao", true, delayTime);
node->addAnimation(0, "idle", true, delayTime);
qwwq2021
  • Mesajlar: 10

Mario

我在这里创建了一个问题:https://github.com/EsotericSoftware/spine-runtimes/issues/2092
Kullanıcı avatarı
Mario

Mario
  • Mesajlar: 3082

Mario

我试图用 4.0 分支的最新提交来重现这一点。 这按预期工作。 请使用我们在 GitHub 上的 4.0 分支中最新的 spin-cpp 和 spin-cocos2dx 代码:https://github.com/esotericsoftware/spine-runtimes

I've tried to reproduce this with the latest commit from the 4.0 branch. That works as expected. Please use the latest code of spine-cpp and spine-cocos2dx from our 4.0 branch on GitHub: https://github.com/esotericsoftware/spine-runtimes
Kullanıcı avatarı
Mario

Mario
  • Mesajlar: 3082

qwwq2021

谢谢,已解决!
qwwq2021
  • Mesajlar: 10


Dön 中国Spine用户