0 votes

I have a main scene with two children. One of the children is an instance of a board, which is made up of instances of a single space. The single space has a script. The other child of the main scene is another instanced scene. I want a signal to be sent by the space's script to the other instanced scene in the main scene.

When the mouse enters any one of the spaces on the board, I want the signal in the space script to be sent to the other child. How can I do this?

Godot version 3.2.3
in Engine by (44 points)

I think I've got it. preloaded the space scene in the main scene.

1 Answer

0 votes

I understand there are 2 ways to connect signals:

  1. Via the inspector
  2. Programatically

To do it via the inspector all the nodes need to be present in the scene tree for you to be able to reference them.

Are they all in the same scene? If so follow this guide to connect the signals:
https://docs.godotengine.org/en/stable/getting_started/step_by_step/signals.html

Where is another useful introduction to signals by GDquest:
https://www.youtube.com/watch?v=l0BkQxF7X3E

by (127 points)
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.