I'm making a mobile Space Shooter game and I'm following a tip of GDQuest (Events.gd singleton). It was working well when I had to connect some touch screen buttons to the player functions like
When the player is ready it emits a signal called
player_ready in Events.gd and the Controls node (that owns the touch screen buttons) should receive this signal and connect the buttons signals to the player's functions (note that the player is passed in the signal).
But it doesn't work, I know why: when player emits the signal, controls isn't in the tree yet...
How to fix that?