Code: Select all
--(path, file, anim, x, y, scale, flipx, flipy, bone, slot)
skeleton,walkAnimation,skeletonData = spine.new("data", "spineboy.json", "walk", 300, 400, 0.8, false, false, true, false)
--(path, file, scale)
skeletonData2 = spine.newData("data", "spineboy.json")
--(data, x, y, flipx, flipy, bone, slot)
skeleton2 = spine.newSkel(skeletonData2, 500, 500)
--(data, anim)
jumpAnimation2 = spine.newAnim(skeletonData2, "jump")