diff options
author | Daniel Weipert <code@drogueronin.de> | 2021-01-31 13:34:11 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2021-01-31 13:34:11 +0100 |
commit | f4c0645b74e85607e18c58f77cc7bbd1a4931123 (patch) | |
tree | 071975e553cd62a55d0fb9949b1c003ed0adbe4e /Characters/Character.gd | |
parent | 3f4c07d2cf57bd364af6b09a3d5381d148aa713e (diff) |
Small adjustments
Diffstat (limited to 'Characters/Character.gd')
-rw-r--r-- | Characters/Character.gd | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Characters/Character.gd b/Characters/Character.gd index 966d69d..e5623b1 100644 --- a/Characters/Character.gd +++ b/Characters/Character.gd @@ -35,6 +35,9 @@ func _physics_process(_delta): $Sprite.play("idle") + velocity = move_and_slide(velocity, Vector2.UP) + + # jump and fall animation if not is_on_floor(): $Sprite.play("jump") @@ -83,9 +86,6 @@ func _physics_process(_delta): $Sprite.flip_h = true - velocity = move_and_slide(velocity, Vector2.UP) - - # stop velocity.x = lerp(velocity.x, 0, 0.7) |