LeinadNoscaj In your call to setAnimation()
, you didn't provide it with a track index that you want the animation to play on. You can call setAnimation()
properly by writing code like player.setAnimation(0, "run", false);
.
It looks like you're missing parameters in your call to addAnimation()
. Here's the addAnimation function from AnimationState.ts:
EsotericSoftware/spine-runtimesblob/4.2/spine-ts/spine-core/src/AnimationState.ts#L563
The delay number is a parameter you pass to the function, like so: player.addAnimation(0, "walk", false, 5);
.
I would encourage you to check out the spine-ts runtime from our Github page and read through the examples.