#How do I make it so the sword also flips when the character turns without affecting the weapon swing
1 messages · Page 1 of 1 (latest)
Hi. In the sword script. Have a variable called wielded and set it as the player using a get_parent function.
Then in its process function make it do; if wielder.(sprite node).flip_h == true (sprite node).flip_h = true
Else:
(sprite node).flip_h = false.
Flip_h simple flips the sprite horizontally. Leaving everything still the way it is
I have tried something similar to that but unfortunately using a horizontal flip doesn't flip the sprite to the correct position