diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-12-12 02:12:52 +0100 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-12-12 02:12:52 +0100 |
commit | a22381eff3bf2286ee27f4d15ddf4c431ea063be (patch) | |
tree | 965bdcf12e5e0cf63c88cbba1bd5a52ba474f81f /extractor/actions.gd | |
parent | e3c185e05823e30eccd7728ceda2ee57cc66fd4d (diff) |
next commit
Diffstat (limited to 'extractor/actions.gd')
-rw-r--r-- | extractor/actions.gd | 13 |
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() |