Godot is an open-source sport engine that helps the creation of 2D, 3D, and combined tasks that runs on Home windows, macOS, Linux and even Android. First launched in 2014, it has gained recognition as a viable various to bigger engines like Unity and Unreal Engine. Some well-known venture created with Godot embrace Dungeondraft, Brotato, Dome Keeper and Sonic Colours: Final.
One of many strengths of Godot is its user-friendly interface and intuitive design. The engine makes use of a node-based system and a Python-like programming language known as GDScript, making it simple to create video games and functions. It additionally has built-in nodes for 2D, 3D, and UI, which permits for minimal boilerplate code. Godot is a good selection for sport improvement, particularly for freshmen.

The newest model of Godot, model 4, affords important enhancements over its predecessor, model 3.5. Godot 4 offers a extra highly effective and versatile sport improvement platform with a wealth of recent options and enhancements to reinforce the sport improvement expertise.
Among the key options of Godot 4 embrace:
- A contemporary Vulkan renderer for improved graphics and efficiency
- Help for .NET 6, permitting builders to put in writing scripts utilizing C#
- An upgraded GDScript, the engine’s main scripting language, with improved efficiency and syntax
- A high-performance physics engine
- Enhancements to multiplayer performance
- A brand new 3D importer that helps glTF and Blender
- Numerous different options and enhancements
Be aware: Right here be dragons! On the time of writing, Godot 4 shouldn’t be steady but so that you may encounter a bizarre bug right here and there. The steady launch is deliberate for someplace in 2023. From my very own expertise, Godot 4 is greater than steady sufficient already, so that you shouldn’t run into many points.
This tutorial focuses on getting you launched to Godot 4. It touches flippantly on some key features of the engine so that you’ll be capable to delver deeper in future tutorials. Listed here are a number of the subjects lined:
- Downloading and opening Godot
- Attending to know the consumer interface
- Creating nodes and scenes
- Operating and instancing scenes
- Creating scripts
You possibly can obtain the supplies for this venture through the use of the hyperlink on the prime or backside of this tutorial. It solely consists of the ultimate venture as you’ll be creating a brand new venture from scratch your self.
Time to get began with Godot!
Getting Began
Whereas the steady model of Godot will be downloaded from the official obtain web page, you may get the newest model of Godot 4 by way of this tuxfamily hyperlink. Click on on the newest folder to open it, rc1 for instance.

From there, click on the zip that corresponds to your OS to obtain it. For the rc1 model of Godot for Home windows, that will be Godot_v4.0-rc1_win64.exe.zip.

After the zip has completed downloading, unzip the file and transfer the folder someplace secure. Godot’s editor doesn’t have to be put in, so you possibly can even put it on a USB stick or an exterior drive if you need. The subsequent step is definitely operating the editor for the primary time, how thrilling!
Making a Venture
Open the Godot 4 folder and run the executable. Relying in your OS, this can be a .exe, .app or .x86_64 file. If that is the primary time you’ve ever ran Godot 4 in your system, you’ll get a dialog window asking you when you want to discover the instance tasks. Click on the Cancel button to say no and proceed to the Venture Supervisor.

The Venture Supervisor enables you to open and create Godot tasks. It has two tabs:
- Native Tasks: These are tasks which might be saved in your gadget. Any new tasks you create will present up right here. It’s also possible to import present tasks so as to add them to the record.
- Asset Library Tasks: It is a record of templates, tasks and demos pulled from AssetLib, Godot’s official repository of user-submitted property. You should utilize these as a place to begin or for studying the right way to use sure engine options.
To create a brand-new venture, click on the New Venture button on the prime proper.

This may open up the Create New Venture dialog window. By default, the venture listing shall be someplace in your consumer listing. This may act as the basis folder of all of your tasks. You possibly can change it by clicking the Browse button to the on the proper. I modified mine to C:/GodotProjects for instance.

The subsequent step is making a folder for the venture itself. To do that, fill within the title for the venture title, “GettingStarted” and click on the Create Folder button. This may create a brand new subfolder on the venture path’s location you arrange within the earlier step.

Subsequent, go away the opposite choices at their default values and click on the Create & Edit button on the backside to generate a clean venture and open the principle editor.

Interface Tour
If all the pieces went properly with the venture creation, you’ll be greeted by Godot’s major interface. It might look daunting at first, however no worries, you’ll be navigating it like a champ very quickly!

Areas
Godot’s editor is break up up into areas, one for each cardinal path and a middle display screen. I’ll give an summary of those within the following sections.
Prime Edge

The highest accommodates the next options from left to proper:
- Menus: These comprise project-wide settings and can help you save scenes, set debug choices and open the documentation simply to call just a few options.
- Display tabs: This switches the content material of the middle display screen to a unique major display screen. Extra on that beneath.
- Playtest buttons: These buttons can help you run and cease the venture or a particular scene.
- Renderer dropdown: This switches what renderer is used to show graphics, from the full-featured Ahead+ on the prime to the light-weight Efficiency mode.
Middle Display

The content material of the middle display screen relies upon closely on the chosen display screen mode within the display screen tabs. All screens apart from AssetLib have the next options in frequent:
- Scene tabs: This allows you to swap between scenes or create a brand new empty one utilizing the plus button. By default an empty one is lively. On the finish is a maximize button to fill the appliance window with the middle display screen.
- Toolbar: A set of buttons, toggles and menus that apply to the viewport. Right here you possibly can swap between deciding on, shifting, rotating and scaling chosen nodes with the primary 4 buttons for instance.
- Viewport: The primary view of the scene most often. It is a flat airplane in 2D mode, a 3D atmosphere in 3D mode and an built-in improvement atmosphere (IDE) in Script mode.
Left Docks

The Scene dock on the prime exhibits a hierarchy of the nodes within the lively scene. When you will have an empty scene open such as you do now, it exhibits buttons to allow you to select the basis node kind. I’ll clarify what nodes and scenes are in Godot within the subsequent part. For now, consider them as any objects utilized in your sport, from sprites and 3D meshes to buttons and audio gamers.
The FileSystem dock on the backside exhibits all information in your venture like photos, scripts and 3D fashions. The basis of the venture folder is res://, which stands for sources. By default, Godot comes with a single picture: the Godot brand. You’ll get accustomed to it quickly. :]
Proper Dock

The dock on the proper holds the Inspector, which lets you view and edit the properties of any chosen node or useful resource. Apart from the Inspector, there are two extra tabs: Node and Historical past. The Node tab accommodates an summary of the chosen node’s alerts and teams whereas the Historical past tab exhibits a listing of the final actions you carried out within the venture, like shifting a node or adjusting a setting for instance.
Backside Panel

The underside panel hides the output window, debug console, audio mixer, animation editor and the shader editor. Any context-sensitive editors just like the tilemap editor may also seem right here when wanted. The panel will be folded out by clicking any of the buttons.
Strive clicking on the Output button for instance to see Godot’s preliminary output.

Principal Screens
The final space of the UI I wish to present right here may be an important as properly: the screens. As an alternative of blending 2D components and 3D meshes in a single view like most sport engines, Godot opts to separate them to make them simpler to work with.
As talked about earlier than, while you create a brand new venture in Godot, it opens the 3D display screen by default.

Right here you possibly can manipulate meshes within the viewport and get a preview of the node placement, lightning and different results.
Subsequent up is the 2D display screen, which you’ll swap to by clicking the 2D display screen tab on the prime of the window.

This the place you possibly can place sprites and create a consumer interface on a flat airplane. Additionally discover that the toolbar is now exhibiting a bunch of various buttons than earlier than. In Godot, this toolbar will usually change relying on the context.
The Script display screen shall be empty for you in the meanwhile, as you haven’t created any scripts but. This a built-in code editor with a set of helpful options, together with syntax highlighting, wealthy auto-completion and a debugger.

It is a godsend, as you possibly can select to solely use this editor to develop your video games, with out the necessity for any exterior script editor.
The final display screen is Godot’s AssetLib.

As I’ve talked about earlier than when discussing the Venture Supervisor, it is a repository of property like demos, scripts and plugins. In contrast to the filtered view of the Venture Supervisor, you possibly can view and import all kinds of property right here.
Nodes and Scenes
Whereas providing you with a tour round Godot’s interface I usually talked about the phrases nodes and scenes. These are your most essential instruments, and also you’ll be continually utilizing them to construct up your sport. Time to take a better have a look at the right way to create them!
Your First Scene
Click on the 2D Scene button within the Scene dock on the left. This may create a brand new Node2D node on the root of your scene.

A node is the smallest constructing block in Godot and it might probably are available in all kinds of various flavors. A node can show a sprite, draw a line, play audio, present a checkbox, make an online request and a ton extra. You possibly can even create your individual customized nodes!
What you created here’s a Node2D node, a 2D sport object that doesn’t do something by itself, however does present a place, rotation and scale. You’ll be utilizing this node as a mother or father so as to add different nodes to as its youngsters.
To make its function extra clear, rename Node2D to GameRoot. You are able to do this by clicking the node once more whereas it’s chosen, urgent F2 or proper clicking the node and deciding on Rename within the context menu. Now kind the title “GameRoot” and hit Enter to substantiate.

To avoid wasting this scene, press CTRL/CMD + S or navigate to Scene ▸ Save Scene within the menu on the prime left. This may open Godot’s save dialog.

What you’re seeing right here is the basis of the venture, as indicated by the res:// path on the prime. To maintain your information neatly organized, it’s greatest to create folders for every kind of asset you’ll be utilizing. Click on the Create Folder button on the prime proper and title this new folder “scenes”.
snake_case for file and folder names to keep away from doable conflicts on case-sensitive working methods.

You possibly can see the trail modified to res://scenes to indicate you’re now within the new folder you created. Identify this scene sport.tscn and click on the Save button to retailer it.

Now you can discover this new scene within the FileSystem dock on the backside left.

In Godot, a scene is a hierarchical group of nodes that serves because the constructing blocks for creating video games and functions. Scenes can be utilized as blueprints, permitting you to create cases of them in different scenes. For instance, you may need a “world” scene that features an occasion of a “participant avatar” scene and a “consumer interface” scene, which shows data such because the variety of gems collected by the participant.
The power to reuse scenes promotes a modular design method, encouraging the event of smaller, reusable elements that may be mixed to create bigger, extra advanced tasks.

Each venture in Godot has a major scene, which is the primary scene that’s loaded when beginning the sport. In most video games, it is a title display screen, an intro or credit. The primary scene on this tutorial is the major scene. To set it up like that, right-click the sport.tscn scene file and choose Set As Principal Scene within the context menu.

To run the principle scene, press F5 or click on the Run Venture button on the prime proper, which appears like a play button.

After a short time Godot will run the scene in a brand new window.

It might look easy, however pat your self on the again as that is your first scene run of many to come back! You possibly can shut the window by urgent F8, clicking the Cease Operating Venture button within the editor or by urgent the window’s shut button.

Instancing Scenes
Now you realize the fundamentals of how scenes work, it’s time to take a better have a look at scene instancing, additionally generally known as scene instantiating. An occasion is a replica of a scene that exists withing one other scene. The unique scene is used as a template or blueprint to create that replicate.
To get began, create a brand new empty scene by clicking the + button subsequent to the sport scene tab.

This scene will comprise a single sprite to have one thing visible to indicate. It’s been a long-standing custom within the Godot group to make use of the Godot brand as a placeholder for every kind of objects, so I feel it’s becoming to make use of it on this introduction as properly!
Yow will discover the icon on the root of the venture within the FileSystem dock. Drag it within the empty scene’s viewport so as to add create a brand new Sprite2D with the icon as its texture.
![]()
For those who check out the Scene dock, you’ll discover a brand new root node named Icon has been added.
![]()
The coloured traces within the 2D display screen’s viewport are known as the x and y axis, with the horizontal line operating from left to proper being the x-axis and the vertical line operating from prime to backside being the y-axis. Each x-position left from the middle is destructive, whereas each x-position proper from the middle is optimistic. Identical with the y-axis: each y-position above the middle is destructive, whereas each y-position beneath the middle is optimistic.

Each 2D place is mapped someplace on these axes. The sprite node must be centered within the viewport to make it simpler to occasion this new scene and place it afterward, so its place must be (X:0, Y:0). When you may place the icon by eye and hope for the most effective, a extra appropriate manner of manipulating the place of a node is through the use of the Inspector.
First, choose the Icon node by clicking on it, both within the viewport or within the Scene dock . This may spotlight the icon with a orange define and purple handles will seem surrounding it.
![]()
Subsequent, check out the Inspector on the proper, which is now populated with the nodes’s properties.
![]()
From right here, you possibly can change the feel, arrange animation frames, change the colour and far more. To vary the node’s place to (X:0, Y:0), unfold the Rework property and reset the Place property by clicking the round arrow button subsequent to the property title.

That ought to’ve completely centered the icon.
![]()
Now save this scene by urgent CTRL/CMD+S, naming it icon.tscn and putting it within the scenes folder subsequent to sport.tscn.
![]()
To examine if all the pieces is working as anticipated, it is best to run this scene. Press F6 or click on the Run Present Scene button (clapperboard icon with a play icon in it) on the prime proper to run the lively scene, icon.

The highest left location of the sport window is at place (X:0, Y:0), that why this leads to a cut-off icon. For those who get the identical consequence as within the screenshot beneath, all the pieces is working as meant.
![]()
Go forward and shut this window. The subsequent step is the precise instancing of the icon scene within the major scene. To try this, open the sport scene by clicking its scene tab on the prime and drag icon.tscn from the FileSystem dock onto the viewport.
![]()
The blue rectangle within the viewport visualize the display screen borders, you may need to zoom out a bit to see them. Drag three extra icon scene cases to the sport scene and unfold the icons out a bit by dragging them round within the viewport.
![]()
Time for one more check, press CTRL/CMD+S to avoid wasting the scene adopted by F5 to run the sport. It’s best to see the icons fortunately sitting there.
![]()
Within the subsequent part, you’ll spruce issues up a bit with some easy scripting.
Scripting
Scripting is a elementary talent when working with any sport engine, together with Godot. A script is a set of instructions that inform the engine what to do and might lengthen its performance. In Godot, scripts will be hooked up to nodes so as to add new options and behaviors to them.
For instance, a Sprite2D node by itself can solely show a texture, however with a script, it might probably observe the cursor, soar, or fade away. Scripts like these can be utilized to name internet APIs, calculate formulation, and carry out different actions essential for making a sport or utility.
Godot helps two major programming languages for scripts: GDScript and C#. Moreover, Godot permits for the usage of GDExtension, a high-performance methodology for increasing the engine with libraries written in C or C++. This tutorial will focus solely on GDScript, because it’s an object-oriented language particularly designed for Godot. Its syntax is much like Python and is broadly utilized in Godot documentation and tutorials.
Your First Script
It’s custom to begin each introduction to a programming language with a “Hi there World”, however for this instance the nodes will inform you their title as an alternative to greet you into the world of Godot.
To begin with, open the icon scene once more by clicking its tab on the prime or by clicking its scene file within the FileSystem dock. Now choose the Icon node by way of the Scene dock and click on the script button on the prime proper of the Scene dock, it appears like a scroll with a inexperienced plus.

This opens the Connect Node Script window.

By default, a brand new GDScript shall be created that builds upon the chosen node kind, Sprite2D. The trail the place the script shall be locations must be modified, so click on the folder button subsequent to the Path property. Within the window that opens, go up one listing with the up arrow on the prime left and create a brand new folder named “scripts” within the venture root listing.

Now click on the Open button on the backside to decide on the scripts folder as the placement in your new script. Again within the Connect Node Script window, click on the Create button on the backside to create a brand new script named icon.gd. This may open up the script in Godot’s built-in code editor robotically:
extends Sprite2D
# Referred to as when the node enters the scene tree for the primary time.
func _ready():
go # Substitute with operate physique.
# Referred to as each body. 'delta' is the elapsed time because the earlier body.
func _process(delta):
go
With out delving too deep into scripting, right here’s what it is best to find out about this code:
- The
extends Sprite2Dhalf on the prime makes it so this script can entry all Sprite2D node properties, like its texture and remodel. -
func _ready()is a operate that will get known as by the engine as soon as initially of the node’s lifetime. - The
_processoperate will get known as each body by the engine. - The
gokey phrase doesn’t do something right here apart from exiting the features. They act as placeholders in your personal code.
GDScript makes use of tabs to group features and statements collectively. These present up within the code editor as >|.

That is essential to notice as you may get an error saying one thing much like “Anticipated indented block after operate declaration.” when you forgot so as to add a tab or take away one by chance.

With that small disclaimer out of the best way, it’s time to lastly add your individual code. Substitute the go within the _ready operate with this print name:
print("Hi there, I am ", title)
The print methodology takes a number of arguments and prints them to the output console. The title variable is a part of each node; it’s the title that you just gave it by way of the Scene dock earlier: Icon.
Be aware: Right here’s a helpful tip! You possibly can open the documentation for the built-in features, strategies and variables by holding the CTRL/CMD key and clicking on the phrase within the code editor.
Now save the script by urgent CTRL/CMD+S and run the icon scene by urgent F6. Subsequent, decrease or drag away the the sport window so you possibly can see Godot’s editor and check out the output window on the backside. There must be a brand new textual content entry in there saying “Hi there, I’m Icon”.
![]()
Nice work! You simply added and ran your first script in Godot. Press the Cease Operating Venture button on the prime proper to shut the sport window
So as to add one thing to have a look at within the major scene, you’re going to make the icons rotate. To try this, take away the go key phrase from the _process operate and substitute it with the next:
rotate(delta)
The rotate methodology is a part of Node2D (the mother or father node class of Sprite2D) and applies rotation to a node. The delta variable is handed to the _process operate by the engine, it’s the time in seconds between the earlier and present body. Through the use of a delta time because the rotation worth as an alternative of a relentless worth like 5 for instance, the rotation shall be clean and framerate-independent.
Within the video games of yore, the pace of a sport was tied to the CPU pace, which meant that some video games are hardly playable as a result of all the pieces whizzes by so quick. In the meantime, that very same sport on a sluggish CPU would end in all the pieces shifting in slow-motion. Utilizing the delta time ensures a dependable, fixed change in worth based mostly on time as an alternative of processor pace. Don’t fear if this idea remains to be imprecise to you at this level, simply bear in mind to make use of the delta while you want one thing to continually change over time.
Now save the script utilizing the now acquainted CTRL/CMD+S shortcut and press F5 to run the principle scene, sport. If all went properly, you’ll see the icons you added earlier rotating.
![]()
In the meantime, when you check out the output window within the editor, you’ll see that the icons are telling you their title.
![]()
That concludes this tutorial! I hope you had enjoyable whereas taking your first steps with Godot as I’m trying ahead to writing extra about it sooner or later.
The place to Go From Right here?
Thanks for studying this tutorial to the tip! You possibly can obtain the ultimate venture utilizing the hyperlink on the prime or backside of this web page.
On this tutorial, you discovered essentially the most essential elements of Godot to get began with creating your individual video games. In fact, there’s much more to find and grasp, so listed here are some helpful sources to proceed your journey:
This tutorial marks the beginning of a group of Godot articles coming quickly, so control the web site for extra future content material. In case you have any subjects in thoughts you need us to cowl, be sure to depart a remark beneath.