1 2 3 4 5
extends Node2D func _on_AnimationPlayer_animation_finished(anim_name): get_tree().change_scene("res://scenes/menu.tscn")