Topic was automatically imported from the old Question2Answer platform.
Asked By
pillme
i have added 2 animations from an AnimationPlayer and bledned them. the blend is connected to the output. all very basic stuff. the animation plays correctly and both animations are playing together.
however, how can i start this animation in the game?
i already set the parameter using the nodes editor. what i want is to play the animation.
pillme | 2023-02-24 17:52
i have read the docs, but they only cover how the parameters can be set via code. not that this is a bad thing, but they do not explain how to play the animation.
if the AnimationTree is not used for that, please let me know.
pillme | 2023-02-24 17:56
Ideally, grab the state machine and call the appropriate method; see the docs for the object type. The docs link to an example containing examples of each.