rayxuln / spine-runtime-for-godot

This project is a module for godot that allows it to load/play Spine skeleton animation.
MIT License
93 stars 22 forks source link

Update for Spine 4.0+ #28

Open davord45 opened 3 years ago

davord45 commented 3 years ago

Spine version 4.0 and above have changed the curves in the JSON file. Before it was 4 variables (curves,c2,c3,c4), now there is a array called curve with 8 floats:

curve": [ 0.889, -169.87, 1.114, -108.54, 0.924, -264.13, 1.114, -373.86 ]

Spine now has x and y for translate,rotation and scale. Can you please update the runtime so that it works with newer versions?

rayxuln commented 3 years ago

The 4.x version of Spine has not been released yet, and the version of the spine-runtime-cpp they provided is 4.0-beta which was updated 3 monthes ago with 3.8 version code merged. I prefer to wait for the official release version of spine-runtime. You could try to override the spine-cpp folder with the newer version of spine-runtime-cpp and build the engine.

rayxuln commented 3 years ago

I've update it to spine version 4.0. Check it out!