fix arrow jumping issue (fixes #117)

This commit is contained in:
Haze Weathers 2023-09-29 16:42:10 -04:00
parent 1258a0e427
commit 3406a0617e

View file

@ -90,10 +90,10 @@ func _physics_process(delta: float) -> void:
state_chart.set_guard_property("can_shoot", can_shoot)
# check for and propagate input events
if Input.is_action_just_pressed("jump"): # jumping
state_chart.send_event("jump")
if Input.is_action_just_pressed("shoot"): # shooting
state_chart.send_event("shoot")
elif Input.is_action_just_pressed("jump"): # jumping
state_chart.send_event("jump")
if Input.is_action_pressed("move_down"):
state_chart.send_event("duck_pressed")
if Input.is_action_just_released("move_down"):