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()