Animated title screen

Godot Version

godot verson 4

Question

I’m trying to make an animated title screen using a sprite but the problem is i don’t know how to make the animation play nor how to import the code for it, does anyone have any code for it?

extends Control
@onready var animation_player = $animation/AnimationPlayer

its too eazy :wilted_flower::wilted_flower::moai: just :

animation_player.play("your_animation")