control playback speed in animation tree.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By thedarksidecode

Hi, i use AnimationNodeStateMachine,
and i want change speed of animation. What i can do.

:bust_in_silhouette: Reply From: coBearCoding

Hi, in order to help you it would be nice to have more information of your situation ^^, i could tell you a way to do it, it could be in the animatonPlayer node by moving the keyframes of the animations and setting the animation duration to an amount you see fit. With so little information is difficult to give you a detailed answer ^^

Ohp yeap, i already have animationPlayer with keyframes.

i want make slowest run animation, when

 current speed is < MAX SPEED/2

i tried to

$AnimationPlayer.playback_speed

but this not work on Animation Tree.

thedarksidecode | 2020-04-30 04:45

:bust_in_silhouette: Reply From: davidoc

You need to use a BlendTree, inside the BlendTree add your animation and a timescale. In the proposals site somebody had a similar problem:

This is my answer

Thank you so much, it works.

thedarksidecode | 2020-05-01 01:17