|
@@ -275,7 +275,7 @@ movement. Let's place this code at the end of the ``_process()`` function:
|
|
|
if velocity.x != 0:
|
|
|
$AnimatedSprite2D.animation = "walk"
|
|
|
$AnimatedSprite2D.flip_v = false
|
|
|
- ## See the note below about the following boolean assignment.
|
|
|
+ # See the note below about the following boolean assignment.
|
|
|
$AnimatedSprite2D.flip_h = velocity.x < 0
|
|
|
elif velocity.y != 0:
|
|
|
$AnimatedSprite2D.animation = "up"
|