From f4c0645b74e85607e18c58f77cc7bbd1a4931123 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 31 Jan 2021 13:34:11 +0100 Subject: Small adjustments --- Characters/Character.gd | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Characters/Character.gd') 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) -- cgit v1.2.3