From 62c8857f0590decd300b936c103061b5f9303168 Mon Sep 17 00:00:00 2001 From: tihgs Date: Fri, 20 Jun 2025 15:30:09 +0800 Subject: [PATCH] Apply touch functions to character movements(The UP function for now) --- char/char.gd | 3 +++ 1 file changed, 3 insertions(+) diff --git a/char/char.gd b/char/char.gd index e9d8ee7..b384bbe 100644 --- a/char/char.gd +++ b/char/char.gd @@ -20,6 +20,9 @@ func _physics_process(delta): if is_on_floor(): if Input.is_action_pressed("ui_up"): motion.y = JUMP_HEIGHT + elif Input.is_action_pressed("up"): + motion.y = JUMP_HEIGHT + motion = move_and_slide(motion, UP) pass