Attention | Topic was automatically imported from the old Question2Answer platform. | |
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):
Signal.play(“cutscene_1”)
func _on_AnimationPlayer_animation_finished(anim_name):
match anim_name:
“cutscene_1”:
get_tree().call_deferred(“change_scene”, “res://assets/room2.tscn”)
https://www.reddit.com/r/godot/comments/saqsng/quick_tutorial_for_screen_transitions_in_godot/
rakkarage | 2022-02-14 01:06