Hi! I recently came across a problem where I want to be able to flip my character and weapon when the character faces left. I can do this easily for the player by using the flip_h method, but I can't do that with the weapon because it flips across the middle of the weapon not the x axis. I was thinking of making the weapon sprite share the same sprite2D as the character but I want to be able to change the weapon sprite to be different weapons so this solution wouldn't work. Any ideas? Sorry if this is a dumb question
#Flipping across an axis
1 messages · Page 1 of 1 (latest)
There are no dumb questions, just dumb answers!
You can try scaling the character on the x-axis for flipping. -1.0 for left and 1.0 for right
Keep the weapon sprite separate, but make sure it's a child of the character. This way when you flip the character (with the scale flipping), the sword will flip to the other side with it. 😉
omg it ended up working,