How can change a cutscene with a trainstion to go to another scene?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ninjakrom

When the player is walking to the 2nd room from the 1st room & appear a cutscene and once the cutscene is finish can change to the 2nd room scene.
I want use the transition scene (“Transition2022.change_scene_loc”) but i dont find the way to put in the script.

extends Node2D

onready var Signal = $AnimationPlayer

func _process(_delta):“cutscene_1”)

func _on_AnimationPlayer_animation_finished(anim_name):
match anim_name:
get_tree().call_deferred(“change_scene”, “res://assets/room2.tscn”)