The 4 Essential Building Blocks of Every Godot Game

Every Godot project is built on four concepts: nodes, scenes, the scene tree, and signals. Getting a clear picture of these before you start will make everything else in the engine click into place faster.

Watch the video

Below I've recapped the key points from the video.

Nodes are the smallest building blocks in Godot. You combine them to form scenes, which are reusable blueprints for anything in your game: a character, a weapon, a UI menu, or an entire level. Scenes fill the role of both prefabs and scenes in other engines, and you can nest them inside each other through a process called instancing.

Godot provides a large library of built-in node types. A 2D character scene, for example, might combine:

This is what this 2D character scene looks like in the editor.
2D character scene example with the four nodes mentioned above.

All your scenes and nodes come together in the scene tree, a hierarchy of nodes and scenes that represents your running game. While the tree is technically made of nodes, you'll think in terms of scenes most of the time, since scenes map to meaningful game entities (characters, enemies, items) rather than basic building blocks (sprites, audio players, collision shapes).

Signals are one way for nodes to communicate. Instead of hard-coding dependencies between nodes, you connect signals to react when something happens: a button press, a collision, a character entering an area. Signals are Godot's take on the observer pattern, and they give you a lot of flexibility in how you structure your project.

updates / code patches

This was originally made with Godot 3 and updated to reflect naming changes in Godot 4. The concepts in the video are still relevant to Godot 4.X.

Become an Indie Gamedev with GDQuest!

Don't stop here. Step-by-step tutorials are fun but they only take you so far.

Try one of our proven study programs to become an independent Gamedev truly capable of realizing the games you’ve always wanted to make.

Nathan

Founder and teacher at GDQuest
  • Starter Kit
  • Learn Gamedev from Zero
Check out GDSchool

You're welcome in our little community

Get help from peers and pros on GDQuest's Discord server!

20,000 membersJoin Server

Contribute to GDQuest's Free Library

There are multiple ways you can join our effort to create free and open source gamedev resources that are accessible to everyone!

Site in BETA!found a bug?