Scene transition not working

Godot Version

4.2

Question

so trying to make a scene tranistion from main menu to the game but due to past paradoxes im testing it with a pointless scene.
for some reason though its not working and the error message is just Breakpoint

the button is a child node of a control node
and player is just the player node with several child nodes

extends Button

func _pressed():

get_tree().change_scene_to_file("res://player.tscn")

”Breakpoint“ means you made a breakpoint in your code editor, so the program will always stop there, which helps you to debug your project. It’s not an error, you can just check your code and find if there are any red points in your editor like this:

图片

1 Like

im so incredibly smart.

thank you

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