Тёмный
No video :(

Signals in Godot 4: Everything You Need to Know as Beginner 

Lio Goes Indie
Подписаться 418
Просмотров 3,2 тыс.
50% 1

Опубликовано:

 

6 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 26   
@LioGoesIndie
@LioGoesIndie Месяц назад
Leave an emote in the chat if you liked the video! Get notified upon new tutorial releases by subscribing and hitting the notification bell! 🙂 Thank you so much for your support! ❤
@fevryslea
@fevryslea Месяц назад
I think this finally got signals to make sense to my brain. Thank your for the breakdown on emitting and connecting signals.
@LioGoesIndie
@LioGoesIndie Месяц назад
Hahaha, I am very happy it helped! And I totally feel you. I have spent my own few hours of frustration trying to understand them 🙂
@fevryslea
@fevryslea Месяц назад
@@LioGoesIndie I was mostly having trouble with the idea of connecting to a signal. A lot of tutorials don't break down what each part of a piece of code means. So I'd just name things like they have it and be left unsure of what it even means.
@kingshahzad78
@kingshahzad78 14 дней назад
Thanks Dear❤❤❤
@soirema
@soirema 6 дней назад
Great stuff!!
@rhibhu3
@rhibhu3 Месяц назад
Thank you for this tutorial. Signals simplified. Can you please show how can we connect signals in scenes which are neither the child or sibling of each other.
@LioGoesIndie
@LioGoesIndie Месяц назад
Hey there. That is possible if you connect them to a standalone script. You would make this script global and connect the signal of your emitting node in this global script through code. When receiving the signal, you would emit a second signal from this global script. You can connect the signal signal of the global script through code in your receiving node and run the code. It is not technically what you describe and not too much different than forwarding the original signal up your scene tree, I know, but it's the closest I currently know. This is briefly mentioned at the end of the video where I say there are Singletons (that is the name of a global script). I am far from creating a video on these, but RU-vid offers a few videos explaining them if you search for it.
@rhibhu3
@rhibhu3 Месяц назад
@@LioGoesIndie hi. Thank you very much for explaining the autoloaders concept. Will try that going forward. Thanks.
@JayDellinger
@JayDellinger Месяц назад
One suggestion. Just have your player emit a health_changed event in all cases with the new value. Then have your HurtFrame handle the calculation logic for the overlay. If you decide to use 25% instead of 50%, for example, then you only have to change the logic in one place.
@LioGoesIndie
@LioGoesIndie Месяц назад
Thank you for pointing this out! As I am still learning programming myself, comments like yours help me to improve myself, so thank you a lot for taking the time 🙂
@taufan7022
@taufan7022 Месяц назад
Thank you so much! Great explanation video :D
@LioGoesIndie
@LioGoesIndie Месяц назад
Thank you, I'm glad you liked it! 😀
@bababonzio
@bababonzio Месяц назад
I have a question: Is there a way to make two scene communicate if the scene that need to receive the signal is being instanciate in the other one (instead of being there from the beginning)?
@LioGoesIndie
@LioGoesIndie Месяц назад
Hello! I answered something similar above, not sure if this covers you. Basically if you want to break with Godot's convention of signaling up and calling down the scene trees, what you would like to try are probably global scripts aka singletons aka autoloaders. Don't know all the workarounds myself yet, so if you find a way that works for you, I'd be happy if you can share to learn something new myself 🙂
@aslkdjfzxcv9779
@aslkdjfzxcv9779 Месяц назад
🍺
@lv99redchocobo37
@lv99redchocobo37 Месяц назад
I wish you did area3d signals instead of button signals.
@LioGoesIndie
@LioGoesIndie Месяц назад
Hey red chocobo 🙂 Connecting a signal from any node works just the same as presented in the video. No matter if it's a 2d, 3d or UI node. You can find the inbuild signals of a node in the window to the right in the node tab besides the inspector tab. Dobble click a signal and connect it to the desired script. The syntax to connect via code is also the same --> node_name.signal_name.connect(name_of_function).
@lv99redchocobo37
@lv99redchocobo37 Месяц назад
@@LioGoesIndie thank you. yes I figured out my problem. I was choosing the wrong signal. I was using area entered when i should have been using body entered.
@LioGoesIndie
@LioGoesIndie Месяц назад
@@lv99redchocobo37 ohh my, the times this had me at witts end too. Happy you solved it 🙂
@rarara816
@rarara816 Месяц назад
Keep up the good work!!
@LioGoesIndie
@LioGoesIndie Месяц назад
Thank you for your cheers! :)
@leonardogomes3504
@leonardogomes3504 Месяц назад
Great video, good tutorial! just try zooming in more; it's hard to read the letters.
@LioGoesIndie
@LioGoesIndie Месяц назад
Thanks mate! Yes, I agree. I also have to achieve a higher video resolution to support that. I hope the next one will be better *fingerscrossed*
@babelyubelbarever4591
@babelyubelbarever4591 Месяц назад
based man
@fiveeyedfrog
@fiveeyedfrog Месяц назад
Далее
Signals in Godot are Amazing!
5:17
Просмотров 28 тыс.
This Godot 4 Scene Manager Does it ALL
28:50
Просмотров 25 тыс.
My Experience Moving to Godot from Unity
16:54
Просмотров 19 тыс.
And Why I am Happy I Created it Anyway
6:50
Просмотров 1,1 тыс.
You NEED to use Coyote Time in Godot 4
6:24
Просмотров 8 тыс.
Easy UI Animation in the Godot Engine
15:31
Просмотров 8 тыс.
Godot Collision Layers and Masks… the EASY Way
13:08
Godot 4 | Signals In Depth Overview
3:06
Просмотров 29 тыс.