Is there a way to flip an animation player? I'm trying to make melee combat, but can only attack from one side.

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

I’m using a sprite, and rotating it with an animation player to attack an enemy. The issue is, I can only attack to one side because the animation isn’t flexible. Is there any way to change this? I will I just need to make a separate animation for the other side?

no you don’t need to make a new animation.
https://www.youtube.com/watch?v=tCrsscmdv9M
attention to the stage structure

ramazan | 2022-01-06 07:48

:bust_in_silhouette: Reply From: lewis glasgow

invert the scale of the sprite $sprite.scale.x = -$sprite.scale.x