Pulse Works Studio

Parse Error: Function "change_scene()" not found in base SceneTree.

SceneTree.change_scene() is gone. Use change_scene_to_file or change_scene_to_packed.

Cause

Godot 4 split the old string-path call into two methods: one takes a res:// path, the other takes a PackedScene you have already loaded. get_tree() is a SceneTree, so the missing method is reported on that base.

Fix

func go_to_file(path: String) -> void:
	get_tree().change_scene_to_file(path)

func go_to_packed(packed: PackedScene) -> void:
	get_tree().change_scene_to_packed(packed)

Related

Godot Dev Tools is a Pulse Works Studio project. All error explainers.