Apply touch functions to character movements(The UP function for now)
parent
c3ce788fd1
commit
62c8857f05
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue