Learn GODOT 4 in 90 Minutes

Want more GODOT 4 content? Explore the Godot 4 Game Development Mini-Degree where you can find a comprehensive, project-based curriculum on it!

In this tutorial, we will introduce you to the Godot Engine, a popular open-source game development tool that supports both 2D and 3D games. We will begin by setting up a new project and walk you through the different windows and features of the Godot Editor. Additionally, we will cover node and scene management, and discuss the process of importing and using assets like sprites in your game.

For this tutorial, you should have a basic understanding of game development as well as familiarity with the use of development tools, such as importing assets and managing files.

Project Files

Although we will be creating our own project from scratch, we have provided a set of assets including sprites that can be used throughout this tutorial. Download the project files and follow along with the tutorial to make the most of your learning experience.

Download Project Files Here

Creating a New Project

In this lesson, we will be setting up our first Godot project. We will be using the Godot Project Manager to create a new project and open it up in the Godot Engine.

To create a new project, open the Godot Engine project manager and click on the New Project button in the top right corner.

New Project

This will open a new window where you can set up a few things. First, give your project a name. For this example, we will call it Intro to Gau.

Project Name

Next, choose a project path. This is where your project files will be stored. By default, it should be in your documents folder. If you wish, you can create your own dedicated folder for Gau projects. However, the project must have an empty folder to begin with, so either select this manually in your Project Path or press the Create Folder button, which will add a new folder automatically to your selected path.

Create Folder

Once you have chosen a project path, press Create and Edit. This will close the project manager and automatically open the new project in the Godot Engine.

Create & Edit

In the next lesson, we will take a look over the different windows, buttons, and labels in the Godot Engine.

Editor Overview

To begin with, it is important to understand the basics of the Godot editor in order to make the most of the engine. In this lesson, we will explore the different windows and features of the Godot Editor, and how they can be used to create a game.

To begin with, you will notice the engine is split up into multiple windows, which we will take a look through individually. If you want to resize any of the windows, you can click and drag the sections between the tabs.

File System

In the bottom left, you will find the File System, which is like a file explorer on your computer. It allows you to store all of the different folders and files that make up your project. When you start writing code or importing 3D models, textures, and audio files, they will be stored in the File System. The File System will allow us to create sub-folders to organize our project and assets.

File System

By default, there is one file in the project called icon.svg. This is the default icon for the game which you may replace at a later time. We will use the File System a lot once we start creating files and scenes.

Viewport Window

In the center of the editor is a large window, which is basically a view into our game world. It is interactive and allows us to move our nodes around the scene to put together and edit our level. It is used in most parts of the game, so you will quickly get a good understanding of how this window works when we start creating our game.

Viewport Window

Currently, it has a 3D view. As Godot is a 3D and a 2D engine, you can switch between these views at the top depending on what project you are working on. Here, you can also switch to the Script for editing code.

Script

Scene Window

The Scene window is a list of all the nodes that make up your current scene. Everything in your game is made up of nodes branching from the top node (also known as the root node). You can create a 2D scene, a 3D scene, a user interface, or other as your root node.

Scene Window

As we will be using a Node2D node as the root, we will select the 2D Scene option.

Inspector Window

When you select a node in the Scene window you can see its information in the Inspector window, on the right-hand side of the screen. The inspector is where you can view and modify the properties of the selected node, for example, if you had the Player node selected, you could change its information such as the Player’s position.

Inspector Window

Play Button

The Play button is positioned above the Inspector window and allows you to launch your game. You can continue the setup by pressing the button.

Play Button

When you click on it, it will ask you to confirm your default scene, so we will select the Select Current option.

Select Current option

You can then save your scene, we will name ours TestScene.tscn and it will launch up a game window. To get out of the game window, you can click on the x or the stop button at the top right corner of the editor.

Save

You will also notice, in the File System a new file has been created representing the scene you just saved.

File System

Output

When you run the game it will open the Output window, which is where error messages or warnings will be displayed. If there is a problem in your game, the output window will open up and display the problem in red.

Output

Project Settings

The Project Settings window can be accessed from the Project tab on the top menu row. There are also many other interesting options along this menu.

Project Settings

The Project Settings window allows you to manage the background settings for your project, such as the name, window size, and rendering and text settings. This is an important window, but we will not be focusing on it just yet.

By understanding the basics of the Godot Editor, you can make the most of the engine and create amazing 3D and 2D games. In the next lesson, we will look at understanding what nodes and scenes are, and how they interact with each other.

Scene Navigation

In the center of the Godot Editor, you will notice one large window, this is the scene viewport that allows us to see and edit the scene from the editor.

2D Mode

With the 2D mode selected, you can use the mouse to navigate the scene.

2D Mode

In 2D mode, you can use the middle mouse button to pan around the screen. To zoom in and out, use the scroll wheel.

3D Mode

With the 3D mode selected, the controls to navigate the scene change slightly.

3D Mode

In 3D mode, you can use the middle mouse button to rotate around the center. Additionally, with the right mouse button held, you can then use the WASD keys to fly around. To go up, press E, and to go down, press Q.

Importing Assets

An asset is a file that can be used in a game. This can include textures, 3D models, audio clips, sound effects, scripts, and any other type of file that can be stored on a computer and make use of in our game.

Using Sprites

In this lesson, we will be using sprites, which are 2D textures used for 2D games. In the Course Files tab of this course, you can find a set of assets that we can use for this course.

Course Files

Once the file is downloaded, you can extract the content and inside there will be a folder called Sprites which contains the .png files needed for this course.

Sprites

Before importing the assets into the Godot Editor, we first need to create a New Folder in the FileSystem, by right-clicking in a blank space.

File System

You can then name this Sprites.

Name Sprites

Importing Assets

To import the assets, open the Sprites folder which contains the .png files. Then, drag them into the Sprites folder we just created in the file system.

Importing Assets

This process works the same for other assets such as audio files, 3D models, and textures.

Conclusion

Now that we have covered the basics of creating a new project in Godot, navigating the different windows, using nodes and scenes, and managing assets in your game, you should be well on your way to creating your own 2D or 3D games using the Godot Engine.

Remember that practice is key – keep experimenting with different features and building upon the knowledge gained from this tutorial. As you continue to develop your skills further, consider exploring more advanced concepts such as physics-based movement, animation systems, and scripting to create even more immersive and exciting games.

We hope this tutorial has served as a helpful introduction to the Godot Engine, and we look forward to seeing the incredible games you’ll create. Good luck and happy game development!

Get industry-ready with the Godot 4 Game Development Mini-Degree! Perfectly suited to any skill level, you’ll get the tools you need to succeed while building a slew of projects!

Did you come across any errors in this tutorial? Please let us know by completing this form and we’ll look into it!

FREE COURSES
Python Blog Image

FINAL DAYS: Unlock coding courses in Unity, Godot, Unreal, Python and more.