im using cocos Lua v4. and im looking how to create spine in Lua. But unfortunately, when im open Lua Test in Spine section. Its not showing spine, i got this error
Its that a bug ? if is not, how can i fix it so i can create spine in Lua ? Thanks
Edit 1 Here how to make spine in cocos lua v4
require "cocos.spine.SpineConstants"
function SpineTestLayerNormal:init()
local skeletonNode = sp.SkeletonAnimation:create("spine/spineboy-ess.json", "spine/spineboy.atlas", 0.6)
end
in cocos/spine/SpineConstants
if nil == sp then
return
end
sp.EventType =
{
ANIMATION_START = 0,
ANIMATION_INTERRUPT = 1,
ANIMATION_END = 2,
ANIMATION_COMPLETE = 3,
ANIMATION_DISPOSE = 4,
ANIMATION_EVENT = 5,
}