In the Choosing animations section, there is the following code
if velocity.x != 0:
$AnimatedSprite2D.animation = "walk"
$AnimatedSprite2D.flip_v = false
# See the note below about boolean assignment.
$AnimatedSprite2D.flip_h = velocity.x < 0
elif velocity.y != 0:
$AnimatedSprite2D.animation = "up"
$AnimatedSprite2D.flip_v = velocity.y > 0
I think it does not fulfill the intended function
If you want to make a move down to the left or right, it doesn't flip up and down,
I think it needs to be changed to the following code to achieve the desired effect.
This issues uses machine translation
Description
In the Choosing animations section, there is the following code
I think it does not fulfill the intended function If you want to make a move down to the left or right, it doesn't flip up and down, I think it needs to be changed to the following code to achieve the desired effect.