I’ve looked at the manual and some tutorials that are on this forum but I’m still confused. What I want to do is create a button and when you press the button it’ll activate the VS. I’m at a loss on how to do that.
This is currently a little complicated, but hopefully this will be a more elegant in the future.
-
Create a node with a GDScript (can be any kind of node if it’s only for emitting a signal)
-
Create a custom signal
-
Connect the buttons ‘pressed’ signal to that new nodes script
-
Connect the custom signal to the “receive_signal” VS, setup your conditions with the first argument detecting the name of the signal
-
Add the code in the button pressed func to call the custom signal. Include the two required arguments which is the name of the signal and another variant check if needed (otherwise use null)
-
You can call signal from a button press
Thank worked! Thank you sooo much! This is going to make creating menu’s so much easier. Now, I believe I have a Patreon to subscribe to.
Glad it worked and thank you very much!