diff --git a/objects/player/player.gd b/objects/player/player.gd index d2c253b..ee3b6fe 100644 --- a/objects/player/player.gd +++ b/objects/player/player.gd @@ -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"):