0 votes

Hi.
When copying a node in the node tree (CTRL+D) the signal of my node's tween is not beeing copied. Is there a way to do this (in a script?).

Thanks!

in Engine by (12 points)

1 Answer

+1 vote

What is it you're trying to do? Is the node being copied while you are editing the game? Or while the game is running? If you want the nodes to be copied at startup you could just connect there signals in the ready function as such:

var nodes = get_node("pathtoparent").connect("pressed", self, "your_function")

If you let me know exactly what you need to do I can help you better?

by (286 points)

Hi,
thank you very much for the reply.
That's exactly what i did, finally.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.