Page 3 of 3

Re: SPINE - Animation Software (LÖVE compatible)

Posted: Sat Apr 27, 2013 10:16 am
by Zeliarden
I made some wraper functions and added path as an argument instead of a custom function

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")
with this you can setup spine with 1 line ;) or 3