Hello,
(sorry about the title it should have been [Corona] AnimationState global 'tracks' error)
(searched about this but couldn't find anything similar)
I'm receiving an error when I update to 3.5 runtime for corona. the same code was working at previous runtime
ERROR: Runtime error
spine-lua/AnimationState.lua:567: attempt to index global 'tracks' (a nil value)
stack traceback:
spine-lua/AnimationState.lua:567: in function <spine-lua/AnimationState.lua:559>
(tail call): ?
main.lua:55: in main chunk
reproducing the same error on main.lua at github
so this code snippet gives the error
table.insert(skeletons, loadSkeleton("spineboy.atlas", "spineboy.json", 240, 300, 0.4, "walk"))
...
...
skeletons[activeSkeleton].state:setAnimationByName(0, "run", true)
this one works
table.insert(skeletons, loadSkeleton("spineboy.atlas", "spineboy.json", 240, 300, 0.4, "walk"))
...
...
timer.performWithDelay(10, function()
skeletons[activeSkeleton].state:setAnimationByName(0, "run", true)
end)
so first of all: is the timer workaround a solid solution or should I avoid this approach and find another solution?
Thanks