I have a New Game menu item that shows a new scene and I want to run a function at that point.
I tried using the ready() function in the scene but it seems the ready() functions for all nodes and child nodes run automatically when the program starts.
I tried connecting to several signals but I can't find one that runs only when a scene activates.
How do I do this?
I thought I had this solved but it turns out I did not.
I crossed posted to reddit.