使用是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);
分页: 1 / 1
qwwq2021
3 weeks ago
- qwwq2021
- 帖子: 10
Mario
我在这里创建了一个问题:https://github.com/EsotericSoftware/spine-runtimes/issues/2092
3 weeks ago
-
Mario - 帖子: 3035
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
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
3 weeks ago
-
Mario - 帖子: 3035
qwwq2021
谢谢,已解决!
2 weeks ago
- qwwq2021
- 帖子: 10
Mark topic unread
• 分页: 1 / 1
回到 中国Spine用户
- 当前时区为 UTC