GodotneersHello Godotneers! Building a nice-looking user interface Godot that works across screen sizes and aspect ratios can be quite a daunting task. This video will provide you with the basics that you need to build your very own user interfaces with the Godot game engine that work everywhere. With it you get a good foundation on which you can build in your future adventures.
00:00 Introduction
00:50 Scene setup
01:27 Building a small dashboard
04:17 Setting up a reference resolution
06:09 Separating the UI into a separate layer
07:16 Introduction to containers
07:56 The GridContainer
08:48 Replacing sprites with TextureRects
11:22 How containers do their work
14:33 Auto-resizing with PanelContainer
15:36 MarginContainer for adding borders
16:37 Why using containers is important
17:05 Using themes for a custom look
17:56 Creating a custom look for labels
18:47 Applying the theme to the UI
20:18 Creating a custom PanelContainer
22:10 Applying theme changes
22:35 Creating a mission dialog
23:20 Auto-wrapping label text
23:41 Stacking components with VBoxContainer
24:29 Creating a variant of the PanelContainer
25:50 Using a variant in the UI
26:09 Overriding built-in variations
26:51 Centering label text
27:08 Creating custom buttons
29:25 Horizontal controls with HBoxContainer
29:54 Controlling the size of controls
30:57 The "expand" flag
32:36 Dividing available space
35:00 Sizing flags explained
36:55 Centering controls
37:17 CenterContainer
38:15 Using spacer controls
40:18 Handling changes in window size
40:43 Anchoring UI elements
42:01 Handling different resolutions
43:44 Handling different aspect ratios
45:45 Conclusion
Godot UI Basics - how to build beautiful interfaces that work everywhere (Beginners)Godotneers2023-09-01 | Hello Godotneers! Building a nice-looking user interface Godot that works across screen sizes and aspect ratios can be quite a daunting task. This video will provide you with the basics that you need to build your very own user interfaces with the Godot game engine that work everywhere. With it you get a good foundation on which you can build in your future adventures.
00:00 Introduction
00:50 Scene setup
01:27 Building a small dashboard
04:17 Setting up a reference resolution
06:09 Separating the UI into a separate layer
07:16 Introduction to containers
07:56 The GridContainer
08:48 Replacing sprites with TextureRects
11:22 How containers do their work
14:33 Auto-resizing with PanelContainer
15:36 MarginContainer for adding borders
16:37 Why using containers is important
17:05 Using themes for a custom look
17:56 Creating a custom look for labels
18:47 Applying the theme to the UI
20:18 Creating a custom PanelContainer
22:10 Applying theme changes
22:35 Creating a mission dialog
23:20 Auto-wrapping label text
23:41 Stacking components with VBoxContainer
24:29 Creating a variant of the PanelContainer
25:50 Using a variant in the UI
26:09 Overriding built-in variations
26:51 Centering label text
27:08 Creating custom buttons
29:25 Horizontal controls with HBoxContainer
29:54 Controlling the size of controls
30:57 The "expand" flag
32:36 Dividing available space
35:00 Sizing flags explained
36:55 Centering controls
37:17 CenterContainer
38:15 Using spacer controls
40:18 Handling changes in window size
40:43 Anchoring UI elements
42:01 Handling different resolutions
43:44 Handling different aspect ratios
45:45 Conclusion
Useful links: -----------------------
Godot UI documentation: docs.godotengine.org/en/stable/tutorials/ui/index.htmlPress play - know it works: Automated testing in GodotGodotneers2025-09-13 | Hello Godotneers! In this video, we're going to explore how we can use automated tests to catch bugs early and test our game logic quickly without having to do hours of manual clicking. We'll start with a quick overview of what tools we can use and how to write a simple test. We're going to look at how to structure our game so it becomes easily testable and we're going to look into some tips and tricks on how we can write our tests so they are better maintainable. And at the end we're going to try to test a whole game from start to finish. It's going to be a fun ride so fire up Godot and learn how to automate the testing of your game.
Table of contents =======================
00:00 Introduction
01:15 Installing GDUnit
02:46 GDUnit configuration
03:48 The first test
06:45 Running tests
08:53 Testing player movement
10:58 Simulating input
13:11 Avoiding duplicated test code
15:10 Repeating the same test with different input
17:09 Making the game testable
23:31 Testing gameplay
26:44 3D game overview
30:05 3D component test setup
32:45 A base class for our tests
34:45 Testing the trigger plate
36:01 Waiting for signals
37:11 Adding indicators to for debugging
39:37 Testing NPC behaviour
42:20 Movement detectors
44:35 Testing NPC path following
47:13 Testing NPC player interaction
50:11 Handling timing
55:25 Speeding up tests
56:20 Testing a whole level
1:06:10 Introducing and fixing a bug
1:07:30 Tips and tricks
1:11:25 Conclusion
If you'd like, you can support me - ko-fi.com/derkorkA G.U.I.D.E to Input in Godot - Part 3: Remapping ControlsGodotneers2025-06-01 | Hello Godotneers! In this third part of our G.U.I.D.E. series, we'll explore how we can use G.U.I.D.E. to create a settings dialog for our game where the player can change the key bindings for the game. We'll explore how we can tell G.U.I.D.E which actions should be re-bindable, how we display them in the user interface and how we detect inputs and update the key bindings. We'll also have a look at how we can detect and handle conflicts between key bindings. Finally we're looking into how we can save the key bindings to a file and load them again when the game starts.
We continue with our example project from parts one and two, so if you'd like to follow along, fire up your Godot engine and learn how to remap your controls the easy way!
Table of contents ================
00:00 Introduction
00:37 Prerequisites
01:17 Example project
02:00 Adding a simple settings dialog
04:23 Showing the dialog and pausing the game
08:14 Making the mouse visible in settings
12:49 Finding remappable actions
16:37 Marking actions as remappable
19:46 Configuring WASD input bindings
21:14 Building the dialog UI
24:53 Get the input that is bound to an action
28:43 Making more actions remappable
29:34 Excluding actions from remapping
30:29 Implementing the actual re-binding
33:11 Creating an input prompt
35:51 Detecting input
40:34 Updating the mapping to the new input
41:16 Updating the dialog on binding changes
43:37 Handling input collisions
51:13 Limiting input to a certain device
53:32 Aborting input binding
56:23 Making the dialog controller-friendly
1:01:16 Should G.U.I.D.E also control the UI?
1:03:26 Applying the binding to the game
1:04:47 Saving and loading input mappings
1:08:38 Conclusion
If you'd like, you can support me - ko-fi.com/derkorkA G.U.I.D.E to Input in Godot - Part 2: Mixed Input & Input PromptsGodotneers2025-02-23 | Hello Godotneers! In part two in this video series about handling input with G.U.I.D.E, we're going to add controller support to the game, that we made in the first part. And we're going to do this in a way that doesn't need any changes to our input handling code. We'll look at how we can seamlessly switch between keyboard and mouse and the controller while the game is running. And we're going to explore how we can show input prompts to the player, so the player knows what to do. Finally we'll look at how we keep these prompts up to date when the player changes between keyboard and controller and our two game modes.
As always, we have an example project to follow along, so fire up your Godot engine and see how easy it can be to support multiple input devices in Godot!
Table of contents ================
00:00 Introduction
01:43 Adding controller support
02:39 Organizing mapping contexts
04:21 Mapping joy axes
07:05 Fixing joystick drift
07:38 Player rotation
10:13 Stick inversion
10:51 Camera control
11:36 Shooting
12:55 Inputs for build mode
15:57 Virtual cursor modifier
18:04 Switching between input schemes
20:07 Detecting which device is used
21:37 Implementing switching
30:54 Input prompts
34:21 Showing a simple input prompt
35:39 Updating prompts on input device change
37:02 Showing icons for inputs
40:43 Mixing prompts with instructions
44:38 Showing situational prompts
48:56 Adding icons to the game UI
49:58 Conclusion
If you'd like, you can support me - ko-fi.com/derkorkA G.U.I.D.E to input in GodotGodotneers2024-12-25 | Hello Godotneers! If you've worked a bit with Godot's way of handling input, you may have noticed that there are a few things which are not as straightforward to do as they could be. We need to write different code each type of input (keyboard, mouse, controllers) which makes it difficult to support multiple input devices at the same time. We also cannot bind some types of inputs like mouse movement or input combinations like "left trigger + a" to an action so our input code can get quite complex as our game grows.
So in this video we look at how to handle all input in a single and very simple way with G.U.I.D.E - a new library for the Godot game engine. We'll use a 3D tower defense game as an example and implement different game modes which use mixed input in different situations while keeping our code neat and tidy. And as always we have an example project to follow along, so fire up your Godot engine and have some fun exploring a nice and simple way to handle all kinds of input in your game!
Table of contents ================
00:00 Introduction
02:13 Goals
03:16 Installing G.U.I.D.E
04:27 Actions
06:07 Mapping contexts
06:39 Mapping actions to input
07:16 Input configuration dialog
08:22 How do we want our input to work?
08:56 Input representation
09:38 Input modifiers
12:14 Handling input in code
14:26 Enabling mapping contexts
15:52 The G.U.I.D.E debugger
17:18 Handling mouse input
19:02 Resolution independence
21:11 Mouse input in code
23:25 Camera rotation
26:36 Triggers
30:14 Checking trigger state in code
30:51 Trigger signals
31:38 implementing build mode
32:43 Multiple mapping contexts
33:27 Switching between modes
35:13 Mode switching in code
39:22 Camera panning in build mode
42:09 Tower placement action setup
44:39 Tower placement plan of attack
46:12 Tower placement implementation
48:34 Converting 2D input into 3D input
51:27 2D input to canvas coordinates
54:35 Placing the towers
57:00 Conclusion
If you'd like, you can support me - ko-fi.com/derkorkTransforms in Godot - elegantly solve game programming problems without being a math wizardGodotneers2024-10-30 | Hello Godotneers! When we make games we very often have to do calculations in 2D or 3D space to find out in which direction a character should walk, a projectile should fire or how to rotate a camera when the player moves the mouse. This often requires quite a bit of math which can be challenging in 2D and gets even more complicated in 3D. Godot's transforms provide us with a very neat and elegant way to solve a lot of these problems without needing a math degree. We're going to see how transforms work under the hood and how we can use this information to do things like moving a character relative to his orientation, shooting bullets from the player perspective without calculating a lot of angles and positions, controlling first and third person cameras and build useful node structures that let us do all of this with very little, readable code. So fire up Godot, download the example project and have some fun!
Table of contents ================
00:00 Introduction
01:51 A simple 2D game
03:25 Player movement
05:04 Player rotation
07:22 2D Transforms
11:42 Fixing rotation with transforms
15:15 Shooting bolts
17:36 Transform combinations
21:03 Spawning bolts with transforms
25:06 Transform parenting
27:06 Rotating the truss beams
28:30 Keeping the platforms upright
31:57 Node rigs
32:28 Fanning out cards
35:57 A simple 3D game
36:20 Moving the camera
39:08 3D Transforms
43:04 Fixing movement with transforms
45:24 Rotation in 3D
51:12 Euler angles
52:30 Gimbal
54:47 Fixing rotation with node rigs
58:33 Third person camera
1:00:02 Driving physics bodies
1:02:13 Spawning nodes in 3D
1:07:00 Conclusion
If you'd like, you can support me - ko-fi.com/derkorkParticle Systems in Godot - Part 2: 3D Particle SystemsGodotneers2024-09-11 | Hello Godotneers! In this second part of our particle systems video series we are going to explore 3D particle systems. We're going to learn the basics of how particle systems work in 3D and how we can build effects like fire and rain. We'll have a look at particle attractors, how to make particles collide with the environment and how to use sub-emitters to create more complex effects like rain splashes. There is also a project for you to follow along, so fire up Godot and have some fun exploring particle systems in 3D!
Table of contents ===============
00:00 Introduction
01:09 Basics of 3D particle systems
02:55 Draw passes
03:37 3D material setup
05:00 Particle behaviour setup
08:40 Color ramps setup
11:54 Billboarding
14:57 Keeping particles in local space
16:09 Particle attractors
17:48 Basic attractor setup
19:19 Attractor movement script
26:50 Rain setup
28:39 Controlling visibility with AABBs
29:58 3D particle trails
30:18 Particle trail meshes
31:14 Material setup for trail meshes
34:36 Rain setup continued
38:18 Rain in large worlds
39:08 Performance considerations
40:56 Particle follow script
42:50 Particle collisions
43:52 Basic collision setup
44:23 3D particle colliders
44:58 Box collider
45:27 Collision and visibility AABB
46:42 Collision tunneling
50:08 Collision height fields
52:04 Collision signed distance fields
55:58 Troubleshooting collision issues
57:27 Particle collider sizes
58:40 Blocking rain from buildings
1:00:41 Particle subemitters
1:01:00 Setting up a ripple effect
1:04:39 Subemitter setup
1:06:16 Subemitter visibility
1:07:32 Subemitter collision issues
1:10:41 Conclusion
If you'd like, you can support me - ko-fi.com/derkorkParticle Systems in Godot - Part 1: Getting started in 2DGodotneers2024-05-28 | Hello Godotneers! Did you ever want to create nice visual effects for your game? Then you probably have stumbled upon Godot's particle systems. And maybe you were a little bit overwhelmed by all the settings and features that Godot's particle system nodes provide. So we're going to explore how particle systems work and how to configure them so they produce the effects that we want.
We're also going to look into how we can let particles interact with our world, how we can produce interesting effects like water splashes with particle subemitters, how to use particle animations to make our particle systems look more realistic and how to create effects with particle trails. It's going to be a fun ride, so fire up Godot and follow along!
Table of contents ===============
00:00 Introduction
01:05 A basic particle system
02:55 How particle systems work
06:27 Controlling movement
09:49 Randomizing settings
10:39 Changing settings over time
12:53 Combining settings for complex motion
16:27 Pre-processing particle systems
17:25 Emission shapes
18:44 Caveats when duplicating particle system
21:01 Creating complex emission shapes
26:35 Clipping
27:14 Rain
29:49 Particle velocity settings
32:26 Controlling particle visibility
34:19 Particle collisions
36:00 Collision modes
37:22 Creating water splashes
39:36 Aligning particles to their movement
42:06 Spawning all particles at once
42:55 Particle Sub Emitters
43:46 Subemitter modes
44:15 Sub emitter particle count limits
46:47 Particle animations
47:18 Using spritesheets for realistic smoke
48:53 Setting up the spritesheet
50:11 Controlling the spritesheet animation
52:16 Particle trails
54:38 Controlling trail behavior
56:32 Fixing visual trail artifacts
59:25 Using color ramps
1:00:48 Fixing trail pop out
1:01:53 Conclusion
Useful links ==========
The example project that we use in this video - github.com/godotneers/particles-video Godot documentation for particle systems - docs.godotengine.org/en/stable/tutorials/2d/particle_systems_2d.html If you'd like, you can support me - ko-fi.com/derkorkLearn programming with GDScript (Part 2)Godotneers2024-04-03 | Hello Godotneers! In this second video about learning programming with GDScript we'll look at what objects, properties and methods are and how we can describe them in classes to model real-world objects inside of a computer program. We'll also check out what Arrays and Dictionaries do and how we can use them in certain scenarios to make lists and look-up-tables and streamline our code quite a bit with them. Finally we're having a look at how we can use all the things that we learned in these two videos to get started with our own projects. So join in for the second part and continue on your Godot learning journey!
Table of contents ===============
00:00 Introduction
00:35 Setup of the example project
01:41 Objects and properties
10:10 Classes and custom objects
24:53 Arrays
39:49 Dictionaries
48:37 What's next?
52:16 Conclusion
Do you want to make games with the Godot game engine but don't know how to program? And you don't want to take a full computer science course just to get started? Then this video is for you. We're going to explore the absolute basics of programming with the GDScript programming language. We'll find out how functions work, what variables are and how we can make decisions and loops to solve simple problems. And we'll do this with an example project that has everything you need to get started , so you don't have to know the ins and outs of the Godot game engine. At the end, you can use all the knowledge that you acquired to solve some challenges, so you get some programming practice under your belt. It's going to be a fun ride, so get your computer ready and join in!
== Contents ==
00:00 Introduction
01:51 Example project installation
04:10 What is programming?
05:50 The first program
14:08 Functions - Part 1
15:57 Naming rules
18:50 Comments
19:47 Variables
31:43 Functions - Part 2
42:55 Decisions
45:24 Data types
55:12 Repeating code
1:07:35 Introduction to the challenges
1:09:52 Some tips and tricks
1:12:12 Conclusion
== Links ==
The example project: github.com/godotneers/programming-video GDScript Reference: docs.godotengine.org/en/stable/tutorials/scripting/gdscript/gdscript_basics.htmlData models - using data to create extensible, maintainable games in GodotGodotneers2024-01-28 | Hello Godotneers! Every game revolves around data. Your game may have items, unit types, crafting recipes, dialogue, quests and a lot more. Handling all this with nodes can become quite difficult over time. In this video we are exploring how you can use data models to represent these game elements. We'll look at a simple implementation of making an item database and improve this by using Godot's resources to represent our game data. Then we'll integrate this data in our game to create a pickup, an inventory dialog and even a small crafting system. We'll also do quite a bit of UI work in the process, so there is a little bit of everything in here. Finally we're going to look into loading our resources dynamically (e.g. all items from a folder) and we're checking out an add-on that allows us to edit our item database like a spreadsheet. It's going to be fun ride, so jump in and happy Godotneering!
== Table of Contents == 00:00 Introduction
01:18 A database of items
14:09 Using resources for game data
20:16 Building an inventory dialog
40:41 Creatin a crafting system
1:12:57 Loading resources dynamically
1:22:15 Maintaining a resource database
1:27:08 Conclusion
== Useful links == Example project if you want to follow along: github.com/godotneers/game-data-video Godot UI basics: youtu.be/1_OFJLyqlXI Godot PCK Explorer: github.com/DmitriySalnikov/GodotPCKExplorer Godot Resource Groups Plugin: github.com/derkork/godot-resource-groups Godot Edit Resources as Table Plugin: github.com/don-tnowe/godot-resources-as-sheets-pluginSaving and loading games with GodotGodotneers2023-12-09 | Hello Godotneers! When you make a game, you will eventually want to add a system for saving and loading games. This can become surprisingly difficult as your game becomes more complex. In this video we're going to explore how we can save all revelant information from our game and load it back, how to make sure we can still load old saved games after we updated our game and how we can deal with security issues surrounding saved games.
== Table of Contents ==
00:00 Introduction
00:46 A simple approach
10:03 Format choices - JSON
17:58 Format choices - Dictionaries
20:33 Format choices - Resources
26:00 Handling dynamic game elements
32:43 A generalized approach
48:12 Extending the generalized approach
53:48 Saved game compatibility
59:55 Saved game security
1:07:47 Conclusion
00:00 Introduction
00:54 Rendering basics
01:50 The shader pipeline
05:19 Vertex shaders
10:08 Selecting vertices
14:46 Animating with time
21:58 Writing vertex shaders with code
32:07 Fragment shaders
40:09 Masking & image manipulation techniques
55:26 Controlling shaders from game code
58:41 Writing fragment shaders with code
1:10:26 Conclusion
== Useful Links ==
Inigo Quilez' "Painting with Maths" series: youtube.com/playlist?list=PL0EpikNmjs2CYUMePMGh3IjjP4tQlYqji Godot Engine Shader Language Reference: docs.godotengine.org/en/stable/tutorials/shaders/shader_reference/shading_language.htmlGodot Components - how to structure a game into manageable parts (Beginner/Intermediate)Godotneers2023-10-03 | Hello Godotneers! When you are creating game in Godot, it is often hard to decide how to structure all your nodes and scenes. Which nodes should go into which scene? Which nodes should talk to each other and when? This video explores ways in which you can create self-contained components in Godot and shows techniques that allow components to access other components and communicate with them while still keeping them usable independently.
Contents ===========
00:00 Introduction
01:07 The setup
06:00 Defining components
08:19 Creating components at runtime
10:46 Signals
13:35 Detection with Areas
19:31 Contracts
24:22 Re-use of components
31:12 Detection with slide collisions
35:25 Groups as classifier
41:17 Combining components
47:45 Autoloads
51:53 Custom signals
53:40 Signal relays
58:48 Component access with groups
1:03:05 Call propagation
1:06:22 Configurable node paths
1:10:01 Conclusion
00:00 Introduction
00:36 Finding nodes below the current one
04:57 Finding nodes above the current one
07:01 Finding sibling nodes
07:50 Accessing the current node
08:45 A better way to do all this
11:02 Conclusion
Useful links ---------------------
NodePath reference page: docs.godotengine.org/en/stable/classes/class_nodepath.htmlState machines and state charts in GodotGodotneers2023-08-21 | Hello Godotneers! With the Godot State Charts library you can easily create complex behaviour in your game with very little code. In this video I'm giving you an overview on the features and how to use them.
00:00 Introduction
00:30 Installation of Godot State Charts
01:21 Scene Setup
04:26 Adding the state chart
07:02 Switching States with Transitions
08:24 Using the state charts debugger
11:12 Running code during a state
13:44 Running code when entering a state
14:31 Delayed transitions
15:38 Using parallel states
18:48 Running transitions conditionally
21:03 Immediate transitions
23:26 Conclusion