Hi! I'm new to this forum, couldn't find answer to my question, in advance sorry if there was already one.
I'm using spine animation in my js app, it is working perfectly fine, but! the only animation that I can put on the page is the animation that I indicated at barebones.html.
Example: my spine animation has 3 states: idle, running and dancing.
When I indicate at barebones.html smth like that:
function load () {
if (assetManager.isLoadingComplete()) {
cat = loadCat("idle", true);
lastFrameTime = Date.now() / 1000;
requestAnimationFrame(render);
} else {
requestAnimationFrame(load);
}
}
on the final page I would see cat (state = idle) and I have no idea how to control my spine animation without adding extra buttons on the page. I wanted to change states using useEffect or set some const like animationState, setAnimationState, so I could freely control the state of animation.
is it possible?