2D Character Leaning

Godot Version

Godot 4.2.2

Question

How would I make a 2d character lean in the direction it’s moving in (I’m a beginner)

A few approaches:

  1. update the sprite and have the character leaning during the walking animation.
  2. Adjust the rotation and potentially the scale of the sprite.

For the second option, you would need to incorporate that with your movement code.