fix arrow jumping issue (fixes #117)
This commit is contained in:
parent
1258a0e427
commit
3406a0617e
1 changed files with 2 additions and 2 deletions
|
@ -90,10 +90,10 @@ func _physics_process(delta: float) -> void:
|
||||||
state_chart.set_guard_property("can_shoot", can_shoot)
|
state_chart.set_guard_property("can_shoot", can_shoot)
|
||||||
|
|
||||||
# check for and propagate input events
|
# 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
|
if Input.is_action_just_pressed("shoot"): # shooting
|
||||||
state_chart.send_event("shoot")
|
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"):
|
if Input.is_action_pressed("move_down"):
|
||||||
state_chart.send_event("duck_pressed")
|
state_chart.send_event("duck_pressed")
|
||||||
if Input.is_action_just_released("move_down"):
|
if Input.is_action_just_released("move_down"):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue