- Изменено
播放动画会崩溃,数组越界错误
- Изменено
使用是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);
我在这里创建了一个问题:EsotericSoftware/spine-runtimes2092
我试图用 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
谢谢,已解决!