summaryrefslogtreecommitdiff
path: root/extractor/actions.gd
blob: 5c94cef756a11fc70b7f987bf2942c1345e65976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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()