diff options
Diffstat (limited to 'Characters/Character.gd')
-rw-r--r-- | Characters/Character.gd | 4 |
1 files changed, 2 insertions, 2 deletions
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 |