0 votes

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?

Godot version 3.4.2
in Engine by (103 points)

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

1 Answer

0 votes

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

by (420 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.