SPINE - Animation Software (LÖVE compatible)

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Zeliarden
Party member
Posts: 139
Joined: Tue Feb 28, 2012 4:40 pm

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

Post 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
Attachments
spine-lua.love
(224.4 KiB) Downloaded 187 times
Post Reply

Who is online

Users browsing this forum: No registered users and 173 guests