Basic Throw Animation tied to Flick Input
This commit is contained in:
15
player.gd
15
player.gd
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user