0 votes

I was trying to have my character equip a sword which is RigidBody2D. He picks it up but when i flip my character the sword doesn't..i tried apply_scale(-1,1) on the sword but it doesn't seem to work. Anyone got ideas?

in Engine by (45 points)

1 Answer

0 votes
Best answer

As far as I know, apply_scale() takes one argument, which has to be a Vector2. So try this: apply_scale(Vector2(-1,1))

by (1,859 points)
selected by

Lol i messed up my if''s...thanks tho.

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.