Help With Changing Scenes

Godot Version

Godot 4.2.1 Stable

Question

get_tree().change_scene_to_file is not changing scene.

I’m pretty new to GDscript and Godot, so thanks in advance to anyone that’s willing to help me. Here’s my code:

extends Button

func _on_start_button_pressed():
	get_tree().change_scene_to_file("res://Main/Scenes/room.tscn")

When I go into my game and press my start button, it doesn’t change the scene to the room scene.

No errors in the output? Double check the pressed signal is connected? Looks like ideal code to me! Very surprising.

I’ve double checked the connection, no errors, nothing. Strange.

Resolved: Issue With Scene Hierarchy was the issue.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.