I'm happy for you. =)
It remains to figure out what else to do here while waiting for the new version of spine web player. The bug with the rotation of bones in version 4.1.5 bothers me a lot.
Question:
Can I reuse a Spine Web Player object for new assets (with changed links for json/atlas/png-files) without destroying it and creating a new one? Can't find answer.
In the examples, I only see the creation of an object with the specified file links like:
test = new spine.SpinePlayer("player-container", {
jsonUrl: "test.json",
atlasUrl: "test.atlas",
skin: "normal",
backgroundColor: "#2a313d",
showLoading: 1
});
I ideally need an object that will show different models, depending on external factors. Without the need to recreate it with new links for new assets. With command something like:
spine_player.skeletonchange({
jsonUrl: "test2.json",
atlasUrl: "test2.atlas",
skin: "normal",
backgroundColor: "#2a313d",
showLoading: 1
});
spine_player.skeletonchange({
jsonUrl: "test3.json",
atlasUrl: "test3.atlas",
skin: "evil",
animation: "walk",
backgroundColor: "#2a313d",
showLoading: 1
});