From 6e5bb8fc59ceb4f2174016860ab089502ec5e2be Mon Sep 17 00:00:00 2001 From: ronny abraham Date: Fri, 15 Nov 2024 14:27:52 +0200 Subject: [PATCH] added signals --- _subsections/sec03/lesson-11.org | 36 ++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/_subsections/sec03/lesson-11.org b/_subsections/sec03/lesson-11.org index 04abbbb..f5feae6 100644 --- a/_subsections/sec03/lesson-11.org +++ b/_subsections/sec03/lesson-11.org @@ -7,3 +7,39 @@ - [[https://www.udemy.com/course/jumpstart-to-2d-game-development-godot-4-for-beginners/learn/lecture/45070477#announcements][S03:L20.11 - Signals]] * Notes +** signals +- messaging system +- way of communicating between nodes + +*** connect basics +- means of connecting + - ide + - code +- the node giving the signal has a list of everyone that connected + +*** connecting via ide +1. select Node panel on leftside, and then select the approrpiate signal + - + #+ATTR_HTML: :width 600px + [[file:../../../_share/media/albert/img/section03/S03_L11_EX01.png]] + +2. double click the selected filter + - options available: + - from signal + - connect to script + - receiver method + - you can also click on "Pick" next to receiver method so that you can choose a different method that already exists + +3. click connect and the boilerplate code will appear in the script you had selected in the signal creation pane above in (2) + + - if you look at the node pane on the right and scroll to the signal, you'll see a green indicator showing that you have connected that signal (to something) + + - + #+ATTR_HTML: :width 300px + [[file:../../../_share/media/albert/img/section03/S03_L11_EX02.png]] + + - similarly, you can see a green icon by the function in the code editor + + - + #+ATTR_HTML: :width 600px + [[file:../../../_share/media/albert/img/section03/S03_L11_EX03.png]]