cocos2dx lua怎么使用spine动画?

版本cocosdx 3.16,有json,atlas,png三个文件,加载骨骼动画遇到问题,使用如下代码运行出错

local dragon = sp.SkeletonAnimation:createWithJsonFile(“NewDragon.json”, “NewDragon_tex.atlas”,1)
–设置动画的位置
dragon:setPosition(cc.p(600,600))
self:addChild(dragon)

请教大神如何加载骨骼动画

cocos lua 使用sp.SkeletonAnimation:create(“NewDragon.json”, “NewDragon_tex.atlas”,1)

lua-tests多么好的资料。lua-tests\src\SpineTest。

多谢大神指点

找到原因了,使用DragnBones导出的文件有问题,使用lua-tests里的文件可以正常使用。本人初学者,多谢大神指点

什么问题 是DragnBones导出的spane不能使用吗