extends Node2D func _ready(): Global.current_scene = "church" func _physics_process(_delta): change_scenes() func _on_exit_point_body_entered(body): if body.has_method("player"): Global.transition_scene = true Global.coming_from_church = true func _on_exit_point_body_exited(body): if body.has_method("player"): Global.transition_scene = false func change_scenes(): if Global.transition_scene and Global.current_scene == "church": get_tree().change_scene_to_file("res://Scenes/world.tscn") Global.finish_changescenes()