I made a new 2d scene and put in both a control node with a button as a child to it. I want to be able to make a main menu (Start, new game, options etc.,) but whenever i even try to put in a ‘play’ button, it doesn’t work.
Do you get any errors? Are you sure your function is connected? Usually if connecting through the editor a function will be generated with a leading underscore _on_button_pressed that is missing.
I connected it to the control node (thanks for the tip :D)(I cant seem to connect it to the House since its a different scene), and now its reponding but its saying in the debugger:
E 0:00:01:314 control.gd:5 @ _on_pressed(): Cannot open file ‘res://House.tscn’.
E 0:00:01:314 control.gd:5 @ _on_pressed(): Failed loading resource: res://House.tscn.
but i added a print (“pressed”) and it is reacting to that