X-Git-Url: http://git.purplebirdman.com/knight.git/blobdiff_plain/f7bede5002d87d7baeff8a311029431fbe430357..1efa5ed501ee461f6c151651e6c41aab48215f15:/skin/the_knight.gd diff --git a/skin/the_knight.gd b/skin/the_knight.gd index feacc9d..992fb92 100644 --- a/skin/the_knight.gd +++ b/skin/the_knight.gd @@ -17,5 +17,17 @@ func fall() -> void: animation_tree.set("parameters/movement/transition_request", "jump") -func attack() -> void: - animation_tree.set("parameters/attack/request", 1) +func attack_neutral() -> void: + animation_tree.set("parameters/attack-neutral/request", 1) + + +func attack_up() -> void: + animation_tree.set("parameters/attack-up/request", 1) + + +func attack_down() -> void: + animation_tree.set("parameters/attack-down/request", 1) + + +func head_tilt(tilt: float) -> void: + animation_tree.set("parameters/head-tilt-blend/blend_position", tilt)