How can I move with AnimationPlayer?

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

I’ve already got the basic movement set up in code. What I’m looking for is to animate more complex movements with AnimationPlayer, for different attacks. The issue here is that the position always gets reset when the attack begins, since it begins at 0.

Is there any way around this? The animation movement is handled separately from the player, in the parent node.

As you have found, technically you can move with the AnimationPlayer, but it will reset the positions when the animation restarts. You probably want to manually change the position in code.

SteveSmith | 2022-11-08 07:26