Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | psear |
If I have two nodes, can I connect the signal of one node to a function of the other? For example, button pressed connected to AnimationPlayer.play, or something like that? I know that I can connect them in a script, but the problem is that I want to avoid using a script. I can do this:
Button.connect("pressed", $AnimationPlayer, "play")
Can’t remember whether the above is correct syntax, but I’ve used this before and it works. problem is I want to do this without a script, but I can’t because in the signal connection GUI it doesn’t let me select anything because there is no script.
Any tips?