Signal get send multiple times... or worse?

Godot Version

Godot 4.3

Question

Okay i am absoloutly breaking right now.

I will show the Code first and explain it and then i try to explain my problem.
image
This is the Global Signals list. I use the Signal “day_pass(day)”

image
I emit the Signal on the press of a button

image
Then i connect it to a function in another node

image
Which should just print “Test” for now. In my Head though.

If i start the Programm and press the named button ONE TIME my console looks like this:
image
And yes it runs all the code in the function three times. i tried around for a bit but was not able to fix it, maybe i connected the Signals in a wrong way? did some other mistake? i dont know but its nagging me :smiley: .

Maybe someone can help me with this, i would be very happy. Thank you very much for your time and have a nice evening.

I’m having the same issue where I send a signal once on a mouse click, but the function is executed three times

Above is the signal, in the middle I connect the signal and below is the function that triggers thrice. On top right is what the console prints

I’ll keep you updated if I find a fix

just to make sure you only have one connection… can you check the output of this:

print(day_pass.get_connections())

I think it might be a result of how you get your input. Using is_action_pressed will continue emitting the signal as long as the input is pressed. Using _is_action_just_pressed might be a better option as it only gets the input once.