–1 vote

hye i am potatoe with programing, like ultra potatoe,
i have been using this demo to start my project, and i wanted the sprite to flip,
and someone told me to read here, as a potatoe i dont understand or how could i add the code to current demo project that im using, could someone help me? on which part should i edit to make my sprite flip horizontally?

in Engine by (17 points)

1 Answer

0 votes

to flip a sprite just inver the scale on the x axis (assuming its in 2d)

$Sprite.scale.x = -1
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.