From 3f4c07d2cf57bd364af6b09a3d5381d148aa713e Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Fri, 22 Jan 2021 16:40:46 +0100 Subject: New Characters! New Levels! --- Characters/Character.gd | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Characters/Character.gd') diff --git a/Characters/Character.gd b/Characters/Character.gd index bf16dbf..966d69d 100644 --- a/Characters/Character.gd +++ b/Characters/Character.gd @@ -72,13 +72,13 @@ func _physics_process(_delta): $Sprite.play("wall") if Input.is_action_just_pressed("ui_up"): - Input.action_release("ui_left") - Input.action_release("ui_right") velocity.y = JUMPFORCE * 0.75 if direction == Enum.DIRECTION.LEFT: + Input.action_release("ui_left") velocity.x = 2000 $Sprite.flip_h = false elif direction == Enum.DIRECTION.RIGHT: + Input.action_release("ui_right") velocity.x = -2000 $Sprite.flip_h = true -- cgit v1.2.3