Hello,
I'm trying out Godot 4 and I noticed something strange. According to the documentation, change_scene() was replaced by change_scene_to_file().
So, when I do
get_tree().change_scene_to_file("res://path/to/file.tscn")
it works fine, when I run the project. However, when export it to a Windows Executable, suddenly it no longer works. The inputs are recognized, but it simply doesn't change scenes.
What am I doing wrong? What would be proper way to do it?