Scaling character body 2d not working properly

Godot Version

4

Question

[<!–Ask your question here! Try to give as many details as possible --[https://www.youtube.com/watch?v=q2b9j3DZB2w]

in this video i try to change the scale to flip my sprite based on movement, but it clearly does not work as intended. I am not using flip_h on the sprite because i also want to flip the held weapon and collision shapes later on. Anyone know why this is happening?

Hey, I think because you are flipping the entire Player, the velocity is also flipped, which makes your if statement go crazy. I would try to make a subnode with all Sprites you want to flip and change its scale: $exampleNode.scale.x

it worked! thanks i was trying to fix it for like an hour. never thought of velocity changing with scale