Composing Scenes with Instances of Scenes in Godot 4
Channel: Brett Makes Games
Date: 2023-05-11

Games created with Godot are made up of scenes of various types of nodes. As you make more complex games, you'll be wondering how you can organize your nodes into reusable chunks. Godot lets you save node branches as scenes, which you can then instantiate and use throughout your game.

This video shows how to take a few simple nodes and extract them into a Player node which can then be added to scenes, modified, and controlled via the Inspector and code.

Source code: https://gist.github.com/brettchalupa/437861d50bebdf67380cd65b08b24dc9

Donate as a way to say thank you: https://www.buymeacoffee.com/brettchalupa
Check out my games: https://brettchalupa.itch.io/
Subscribe to my newsletter: https://www.brettchalupa.com/newsletter

Chapters
00:00 - Intro
01:03 - Creating a Player Scene
03:27 - Positioning Origin of Nodes in Scenes
05:18 - Instantiating a New Instance of a Scene
06:03 - Editing Player Scene
07:13 - The Power of Composing with Scenes
07:37 - Two Players
08:00 - Modifying Scene Instances with Export Variables
10:07 - Outro

#Godot #Godot4 #GodotEngine