AnimationPlayer.playback_speed

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

Guys i have problem i am working on 2d animation game and have a problem with animationplayer.playback_speed i am using animationtree.blandspace i need just to change some attacks skills speed in a moment and when i using a kay in animationplayer for playback_speed it is not working in game animation. and when i am printing the playback speed i see in output that it is changing but animation is still not changing i need to change animation speed but not working in blandspace . I try to use blandtree but i think it is not what i need. i just need to change speed 3 or 4 times in 1 animation … pls help me

:bust_in_silhouette: Reply From: Gluon

The AnimationPlayer has a Speed property in the Inspector. It can also be accessed in code by using the line set_speed() so for example you may have something like

$AnimationPlayer.set_speed(3)