From a22381eff3bf2286ee27f4d15ddf4c431ea063be Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Thu, 12 Dec 2024 02:12:52 +0100 Subject: next commit --- extractor/actions.gd | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 extractor/actions.gd (limited to 'extractor/actions.gd') 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() -- cgit v1.2.3