Connected signal not being received by script in same scene.

Godot Version

4.6.2

Question

I have two scripts in the same scene. Script 1: hud_info. Script 2: progression_manager.

I have a signal in progression_manager called “update_money_label” that has been connected to the hud_info script through both the editor and code (for redundancy sake/debugging efforts), yet no matter what I try, the receiving hud_info script, does not actually receive the signal being sent from the progression_manager script.

See the flow below:

Step 1. Send signal from progression_manager script to whoever is listening.

image

Step 2. Receive signal from progression_manager.

Note: you can see here that on ready, I also connect to the signal through a hard reference to the progression_manager (pm for short). This was purely done for debugging efforts.

So my question is: Why does this not work? I have done it exactly the same as all other signals in my project.

1 Like

You’ve put in on_money_update() when the function is called _on_money_update().

You’re missing the underscore at the start of the function’s name when you call it or emit a signal to it.

Either remove the underscore from the function’s name, or add it to the function calls and signals.

1 Like