Godot Tidbits: Global Signals (Event Bus)

  Рет қаралды 6,110

MikeFrom1974

MikeFrom1974

Күн бұрын

Пікірлер: 32
@ckay7816
@ckay7816 27 күн бұрын
What a glorious solution! I was having such a hard time understanding connecting signals in Godot and dreading the task, but now i see how simple it really is! This video should be linked in the documentation page for signals!
@Bargeral
@Bargeral 2 ай бұрын
I've always connected to signals via the ready() function, and never bothered to disconnect them. Using the tree enter and exit is much cleaner, thanks for that tidbit.
@zongopbongo
@zongopbongo Ай бұрын
it should ensure the signal is disconnected when queue_free-ing which is nice!
@Boblikescheese
@Boblikescheese 3 ай бұрын
Phenomenal tutorial, exactly what I was looking for when handling signals with dynamically loaded objects! Very informative and straight to the point
@EidoEndy
@EidoEndy 3 ай бұрын
Amazing tutorial. Global signals are something I’ve been trying to wrap my head around for a while (for making a bullet hell). and this does a good job explaining it.
@donaldedgarvisuals
@donaldedgarvisuals 3 ай бұрын
Thank you so much for making this! Super helpful and only one I could find that deals with dynamically loading objects. Update: watching this finally fixed a problem Ive been trying to resolve for a week of setting Z_Index of multiple instances of objects so that whatever the last clicked object was is on Z_Index 1 and everything else sets Z_Index to 0. Thank you!
@autumnshade84
@autumnshade84 3 ай бұрын
This was just what I was looking for! Thank you! I’ve been using an auto load with getters and setters which is working fine, but this will work a treat!
@brandonstone2754
@brandonstone2754 2 ай бұрын
This guy needs more likes/subs this was great
@Games-vu9nz
@Games-vu9nz 2 ай бұрын
Thank you for the beautiful and useful explanation.
@ThaAftrPartie
@ThaAftrPartie 4 ай бұрын
4:51 it’s not random, it’s based on the scene save. So if you save a scene from within the script menu, and say are on a different script, that script you’re writing’s scene now becomes the original script’s scenes’s thumbnail. Just go into the editor and re-save the scene with the area you want shown
@mikefrom1974
@mikefrom1974 4 ай бұрын
Good callout, thanks!
@grymmjack
@grymmjack 2 ай бұрын
Great video thank you! Also explained the Singleton thing. So we need to extend Node for our autoload Singleton? Does the autoload automatically get loaded in EVERY scene then?
@WouterLockefeer
@WouterLockefeer 2 ай бұрын
Yes and yes. Autoloads extend Node by default, so no need to worry about that.
@avinsxd
@avinsxd 5 ай бұрын
This is a great tutorial! Very underrated
@huachimingoX
@huachimingoX 2 ай бұрын
thanks you explained very well
@igork1336
@igork1336 3 ай бұрын
very good tutorial
@MrGramno
@MrGramno 5 ай бұрын
Very interesting video i learned about the on scene enter and exit signals :D
@simonsaysgray
@simonsaysgray 3 ай бұрын
thanks, great video!
@deniskkd6262
@deniskkd6262 3 ай бұрын
You are awesome🎉
@Notreal76
@Notreal76 4 ай бұрын
Thank you for this tutorial
@chiubaca
@chiubaca 3 ай бұрын
Any downsides to this approach or suggestions when this is a bad idea ?
@MathGoOli
@MathGoOli 3 ай бұрын
I've linked the bombs on the basic level scene that all level scenes inherits.
@nvm9174
@nvm9174 4 ай бұрын
thank you man
@EidoEndy
@EidoEndy 3 ай бұрын
Quick question, why do you need to disconnect the signal when leaving the tree? Is the listener still in memory or something?
@mikefrom1974
@mikefrom1974 3 ай бұрын
This is just a safety net to prevent weirdness and null errors if a node is no longer in the tree but somehow not completely gone form memory.
@mbg4681
@mbg4681 Ай бұрын
*_Axe Squirrel!!!!_* *guitarsolo*
@Ocdib
@Ocdib 3 ай бұрын
Hi! Just checking on the _on_tree_exiting signal... Is this signal triggered when the object `queue_free`s? What's its purpose?
@mikefrom1974
@mikefrom1974 3 ай бұрын
This signal is triggered whenever the object leaves the "tree" (the hierarchy representing the currently running level). It's a way to ensure something is done BEFORE a node is gotten rid of, including queue_free
@Ocdib
@Ocdib 3 ай бұрын
@@mikefrom1974 I see. Is there any consequence of leaving a signal attached AFTER queue_free? What are we safe guarding against?
@tracotr
@tracotr 5 ай бұрын
Dude ty
@alfredogodoy6854
@alfredogodoy6854 5 ай бұрын
noice video
Tweens are AMAZING in Godot 4.3
27:44
Cashew OldDew
Рет қаралды 8 М.
How to Use Signals in Godot 4
42:00
Patrick Morrow
Рет қаралды 1,9 М.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,8 МЛН
ЛУЧШИЙ ФОКУС + секрет! #shorts
00:12
Роман Magic
Рет қаралды 39 МЛН
IPC: To Share Memory Or To Send Messages
14:15
Core Dumped
Рет қаралды 54 М.
Godot 4 - Signals (Global & Local), Tweens & awaits
34:03
GrayDwarf
Рет қаралды 523
Linux Kernel 6.12 | This is Historic
1:07:22
Maple Circuit
Рет қаралды 34 М.
Their Godot Game Sold Nearly 1,000,000 Copies | PlayWithFurcifer
28:34
Learn to Build an Advanced Event Bus | Unity Architecture
13:27
Clean Code in Godot - Composition (Why/How)
7:31
Witchwood Village Dev
Рет қаралды 7 М.
Миллионер | 3 - серия
36:09
Million Show
Рет қаралды 1,8 МЛН