Basic Throw Animation tied to Flick Input

This commit is contained in:
2023-06-03 16:31:51 -04:00
parent 314c1c2d13
commit 95e87fd140
2 changed files with 28 additions and 6 deletions

View File

@@ -36,6 +36,17 @@ func _input(event):
"player_right",
"player_up",
"player_down"
)
)
set_move_direction(direction)
var flick = Input.get_vector(
"flick_left",
"flick_right",
"flick_up",
"flick_down"
)
if flick.length_squared() != 0:
$PlayerSprite.play("throw")
else:
$PlayerSprite.play("still")