Is there any way to flip/ mirror animations in Godot?

Godot Version

4.2 stable

Question

I’m working on a top-down fighting game where characters can carry weapons in each hand. For attacking, I want to animate the whole body according to the equipped weapon. However, because the animations include parts of the body (I have a sprite for each body part I want to animate), I can’t simply flip the weapon. I’m still looking for a solution to flip my animations or any Lifehack to “mirror /flip” animations because: 1. copies of the animations always mess up the animation player, and 2. it takes time to animate every attack twice… Any ideas?

Set the scale.x of a parent to -1.

you may try “animation_player.play_backwards()”