Перейти к содержимому

How to use Signals in Godot 4.6 - Complete Beginner Guide (Event Bus, Await, Private Signals)

Godot Dev Checkpoint

0:00 / 0:00

How to use Signals in Godot 4.6 - Complete Beginner Guide (Event Bus, Await, Private Signals)

1 693 просмотра · 7 месяцев назад
Godot Dev Checkpoint
2,96 тыс. подписчиков
1 693 просмотра · 7 месяцев назад
Stop connecting your nodes randomly! In this video, we tackle the #1 cause of messy code in Godot: Signals. We build a "Signal Survivor" mini-game from scratch to master Built-in Signals, Code Connections, the new Godot 4.6 Private Signals, and finally, the professional Event Bus pattern. In this comprehensive guide for Godot 4.6, we go beyond just clicking buttons. You will learn the difference between "The Recipe vs. The Cake" when connecting via code, how to pass data between nodes using Custom Signals, and how to create a global communication network (Event Bus) to handle Game Over states cleanly. Documentation Link(s) of Referenced Concepts: Godot 4.6 Changes: https://godotengine.org/releases/4.6/ Private Signal Confusion: https://github.com/godotengine/godot/... https://github.com/godotengine/godot/... Using Signals: https://docs.godotengine.org/en/stabl... Assets Used in Tutorial: Godot 4.6: https://godotengine.org/download/wind... Built with standard Godot Primitives (Control Nodes, Labels, Buttons). THE CHECKPOINTS 0:00 - Intro 0:35 - Built-in Signals (The Easy Way) 2:50 - Code Connections (The Pro Way) 5:31 - 🛑 CRITICAL MISTAKE: Recipe vs. Cake 7:24 - Custom Signals 8:00 - Godot 4.6 Private Signals 13:50 - CHECKPOINT: The Timer Challenge 16:26 - The 'await' Keyword 18:20 - The Event Bus (Global Signals) 22:26 - Outro If you want to support the creation of these tutorials or grab the source code for this project: ☕ Ko-fi: https://ko-fi.com/godotdevcheckpoint 🧡 Patreon:   / godotdevcheckpoint   🌐 Website: https://godotdevcheckpoint.com/ 🦋 Bluesky: https://bsky.app/profile/godotdevchec... 🦋 Bluesky: https://bsky.app/profile/spaghettisyn... I'm ‪@spaghettiSyntax‬ and remember: finished, not perfect, fail fast, fail often, always stay curious, and I'll see you at the next Checkpoint. #godotengine #godot4 #gamedev #indiedev #godottutorial #gdscript #GodotSignals #signals