X-Git-Url: http://git.purplebirdman.com/frog-ninja.git/blobdiff_plain/a070d33828371b5c36b891f93bd1708f8da1b451..refs/heads/master:/player/player.gd diff --git a/player/player.gd b/player/player.gd index 94283d9..d00302d 100644 --- a/player/player.gd +++ b/player/player.gd @@ -68,6 +68,12 @@ func _unhandled_input(event: InputEvent) -> void: func _input(event: InputEvent): if event.is_action_pressed("player-dash"): _skin.transition_dash() + elif event.is_action_pressed("player-slash"): + _skin.sword_visible() + _skin.transition_slash() + elif event.is_action_pressed("player-shoot"): + _skin.gun_visible() + _skin.transition_gunfire() # Get the XZ input direction based on player's input relative to the camera