From 50ea7e15d0a6185d9114cf9ac8337c3558334fd4 Mon Sep 17 00:00:00 2001 From: tpart Date: Sun, 23 Jun 2024 14:28:46 +0200 Subject: Add character hand animations --- client/scripts/character.gd | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/scripts/character.gd (limited to 'client/scripts/character.gd') diff --git a/client/scripts/character.gd b/client/scripts/character.gd new file mode 100644 index 00000000..0340595a --- /dev/null +++ b/client/scripts/character.gd @@ -0,0 +1,13 @@ +extends Node3D +class_name Character + +@onready var hand_animations = $HandAnimations + +func _ready(): + play_animation("idle") + +func play_animation(name_: String): + hand_animations.play(name_) + +func _on_hand_animations_animation_finished(name_): + hand_animations.play(name_) -- cgit v1.2.3-70-g09d2