Basic dialog system working
This commit is contained in:
@@ -33,7 +33,7 @@ func _physics_process(_delta) -> void:
|
||||
buffer_grounded -= 1
|
||||
|
||||
#jump buffering
|
||||
if Input.is_action_just_pressed("input_jump"):
|
||||
if %GameplayController.input_enabled and Input.is_action_just_pressed("input_jump"):
|
||||
buffer_jumping = 6
|
||||
else:
|
||||
buffer_jumping -= 1
|
||||
@@ -45,7 +45,7 @@ func _physics_process(_delta) -> void:
|
||||
buffer_jumping = 0
|
||||
|
||||
#normally, fall faster than you rise
|
||||
elif velocity.y < 0 and (Input.is_action_pressed("input_jump") or just_bounced):
|
||||
elif ((%GameplayController.input_enabled and Input.is_action_pressed("input_jump")) or just_bounced) and velocity.y < 0:
|
||||
velocity.y += GRAVITY_RISING
|
||||
else:
|
||||
velocity.y += GRAVITY_FALLING
|
||||
@@ -54,7 +54,7 @@ func _physics_process(_delta) -> void:
|
||||
#sideways movement
|
||||
var move_dir = Input.get_axis("input_left", "input_right")
|
||||
|
||||
if move_dir:
|
||||
if %GameplayController.input_enabled and move_dir:
|
||||
_sprite.flip_h = move_dir < 0 #fancy HD 4K graphics
|
||||
velocity.x += MOVE_FORCE * move_dir
|
||||
|
||||
|
||||
Reference in New Issue
Block a user