[SOLVED] Anim Blending API

Hello, all.
I just learned about anim blending and I think It would be very helpful for the animations for my projects.
I have seen a couple of examples, but they don’t seem to work for what I am doing

All I want to do is blend animations based on variables.

I did find the. play API but when I tried it: this.entity.animation.play('Attack1.glb',100); it didn’t work.

I am grateful for any help!

Hi @Codeknight999!

Are you sure you want to use the old animation component?

Maybe you can take a look at the new anim component. :point_down:

1 Like

I do! I keep forgetting that the old one is different sorry.

I looked at that example and it look like it just switches the animation, is there a way to smoothy blend the animations?

see this part in the link manual page:

Selecting this transition will show the transition inspector in the panel to the right. Here the duration of the transition can be set, which will determine how long the blend between the two animations should last. We’ll set this to 0.2 seconds.

1 Like

Sorry, I must have missed that. Thanks for pointing that out.

1 Like