make pushing need horizontal input (fixes #123)

This commit is contained in:
Haze Weathers 2023-06-30 12:23:34 -04:00
parent 494916361b
commit 9a3a62d16b

View file

@ -396,7 +396,7 @@ func _process_movement(delta: float) -> void:
position.x += col.normal.x * 0.001 position.x += col.normal.x * 0.001
# check for wall # check for wall
if is_on_wall(): if is_on_wall() and Input.get_axis("ui_left", "ui_right") != 0.0:
state_chart.send_event("push_start") state_chart.send_event("push_start")
func _process_floating_up(delta: float) -> void: func _process_floating_up(delta: float) -> void: