summaryrefslogtreecommitdiff
path: root/Characters/Character.gd
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2021-01-22 16:40:46 +0100
committerDaniel Weipert <code@drogueronin.de>2021-01-22 16:40:46 +0100
commit3f4c07d2cf57bd364af6b09a3d5381d148aa713e (patch)
tree4fe53d2f627237e70a24ff7ec3d3815d07523c62 /Characters/Character.gd
parent485cd463b22e12394cd232812e2c3789ef37ab1c (diff)
New Characters! New Levels!
Diffstat (limited to 'Characters/Character.gd')
-rw-r--r--Characters/Character.gd4
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