How to make a smooth transition from one animation to another

And so, to make a smooth transition we have two options.
1.
A: AnimationName:Play(transitiontime in seconds)
B: AnimationName:Stop(transitiontime in seconds)
2.
A: AnimationName:ChangeWeight(Animation Weight)

In the first method,
we set the time value until the animation reaches 100% weight (Weight is the percentage of how much the animation changes the pose of the character.).

In the second method, we change the weight manually, rather than setting a time when it reaches 100 percent.

Code Example:

AnimationName:Play(0.2)--You can change
AnimationName:ChangeWeight(0.5)--This means animation will affect character pose 50%

I hope this has been useful for your game development.

2 Likes

Could you provide a basic code example to demonstrate?

1 Like
AnimationName:Play(0.2)--You can change
AnimationName:ChangeWeight(0.5)--This means animation will affect character pose 50%

The post reminds me of this:

64ff3n

Please properly format it, Here’s this post to help you

1 Like