I dont know why but I end up coming to this thread every year.
ChatGPT didn’t provide the help I needed. I’ve gone through multiple example codes to learn more, but I’m still stuck on this simple issue and can’t seem to get past it
Please clarify for me: The code below works fine, except it does not play the animation, no errors it looks like it plays the first frame but does not update/apply every frame so animation is still, if I add player.play();
animation plays but I want to have more control over the state, and not just play and pause the player. eventually I want to play multiple animations on different tracks once, not in a loop
<script>
new spine.SpinePlayer("player-container", {
jsonUrl: "gifts.json",
atlasUrl: "gifts.atlas",
showControls: true,
skin: "bluff",
backgroundColor: "000000",
defaultMix: 0,
premultipliedAlpha: true,
success: function (player) {
player.setViewport("base");
player.animationState.setAnimation(0, "base", false);
}
});
</script>
if you visit here you will see the player is playing but animation is not.