summaryrefslogtreecommitdiff
path: root/extractor/actions.gd
diff options
context:
space:
mode:
Diffstat (limited to 'extractor/actions.gd')
-rw-r--r--extractor/actions.gd13
1 files changed, 13 insertions, 0 deletions
diff --git a/extractor/actions.gd b/extractor/actions.gd
new file mode 100644
index 0000000..5c94cef
--- /dev/null
+++ b/extractor/actions.gd
@@ -0,0 +1,13 @@
+extends Node2D
+
+
+@onready var animation_player: AnimationPlayer = %AnimationPlayer
+@onready var sprite_layers: CanvasGroup = %SpriteLayers
+
+
+func play(animation_name: StringName = &"", custom_blend: float = -1, custom_speed: float = 1.0, from_end: bool = false):
+ animation_player.play(animation_name, custom_blend, custom_speed, from_end)
+
+
+func pause():
+ animation_player.pause()