newest Version as of right now
This commit is contained in:
@ -6,7 +6,10 @@ func get_state_name():
|
||||
|
||||
func enter():
|
||||
player.air_jumps_done = 0
|
||||
player.jumps_done = 0
|
||||
player.coyote_timer = 0.0
|
||||
player.wallrun_available = true
|
||||
player.dash_available = true
|
||||
player.v_mult = 1
|
||||
func exit():
|
||||
pass
|
||||
@ -15,10 +18,15 @@ func update(delta):
|
||||
|
||||
if player.transitionidle():
|
||||
Transitioned.emit(self, "PlayerIdle")
|
||||
elif player.transitionroll():
|
||||
Transitioned.emit(self, "PlayerRoll")
|
||||
elif player.transitioncrouch():
|
||||
Transitioned.emit(self, "PlayerCrouchwalk")
|
||||
elif player.transitionwallrun():
|
||||
Transitioned.emit(self, "PlayerWallrun")
|
||||
elif Input.is_action_just_pressed("jump") and player.can_vault and player.is_facing_vault_direction():
|
||||
Transitioned.emit(self, "PlayerVault")
|
||||
Transitioned.emit(self, "PlayerVault")
|
||||
elif player.transitionjump():
|
||||
Transitioned.emit(self, "PlayerJump")
|
||||
elif player.transitionfall():
|
||||
|
||||
Reference in New Issue
Block a user