Continue after jump
This commit is contained in:
parent
ff08e6e4f9
commit
dc472515c4
2 changed files with 6 additions and 0 deletions
|
|
@ -17,6 +17,10 @@ func enter() -> void:
|
||||||
player_input.jumped.connect(on_jumped)
|
player_input.jumped.connect(on_jumped)
|
||||||
player_input.crouch_begin.connect(begin_crouch)
|
player_input.crouch_begin.connect(begin_crouch)
|
||||||
player_input.walk_begin.connect(begin_walk)
|
player_input.walk_begin.connect(begin_walk)
|
||||||
|
if player_input.compressed_states & PlayerInput.CROUCH:
|
||||||
|
begin_crouch()
|
||||||
|
elif player_input.compressed_states & PlayerInput.WALK:
|
||||||
|
begin_walk()
|
||||||
|
|
||||||
func exit() -> void:
|
func exit() -> void:
|
||||||
player_input.jumped.disconnect(on_jumped)
|
player_input.jumped.disconnect(on_jumped)
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,8 @@ func enter() -> void:
|
||||||
player_input.crouch_begin.connect(begin_crouch)
|
player_input.crouch_begin.connect(begin_crouch)
|
||||||
player_input.walk_end.connect(end_walk)
|
player_input.walk_end.connect(end_walk)
|
||||||
player_input.jumped.connect(on_jumped)
|
player_input.jumped.connect(on_jumped)
|
||||||
|
if player_input.compressed_states & PlayerInput.CROUCH:
|
||||||
|
begin_crouch()
|
||||||
|
|
||||||
func exit() -> void:
|
func exit() -> void:
|
||||||
player_input.crouch_begin.disconnect(begin_crouch)
|
player_input.crouch_begin.disconnect(begin_crouch)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue