X-Git-Url: http://git.purplebirdman.com/knight.git/blobdiff_plain/dff18309792f5f7c4ac032fc3bd6faed7a1203bd..c5fe4383db5121b31b5440c082076a67163673b9:/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)