Coding

How to Use Godot: Your First Project, Step by Step

To use Godot, download the editor, create a project in the Project Manager, build a scene out of nodes, attach a script to a node, and press F5 to run the project or F6 to run the current scene. This walkthrough covers those steps in order, using the official Godot 4 documentation.

Example output and code below follow the Godot 4.7 documentation. Menu names can shift slightly between 4.x releases, so if something looks different, check the docs for your version.

Step 1: Download Godot and open the Project Manager

Get the editor from the official download page. As of November 2026, the page lists 4.7.2 (released 18 August 2026) as the current stable version. On Windows there is nothing to install: extract the archive and run the executable.

You have two editions to choose from:

  • Standard for GDScript, the language the official tutorials use.
  • .NET if you want C#. It needs the separate .NET SDK, and the Steam, itch.io and Epic Games Store builds do not include C# support.

The first window you see is the Project Manager. Its Projects tab lists your projects and lets you create, import and open them. The Asset Library tab stays offline until you click "Go Online", because Godot does not access the internet by default. The Settings menu controls the language, interface theme and display scale.

Step 2: Create a project

In the Projects tab, create a new project, give it a name, choose an empty folder for it, and confirm. The editor then opens on an empty project. A project is just a folder that Godot manages. Everything in it lives under the res:// path, and the editor only saves scenes inside it.

Step 3: Learn the editor layout

The top bar has the main menu on the left, the workspace buttons in the middle, and the playtest buttons on the right. Under it are scene tabs, and the large viewport sits in the center.

Part of the editorWhat it does
2D workspaceBuilding 2D games and interfaces
3D workspaceMeshes, lights and 3D levels
Script workspaceCode editor with a debugger, auto-completion and a built-in code reference
Game workspaceShows the project while it runs from the editor. Changes you make there are not saved when it stops
FileSystem dockLists the project's files: scripts, images, audio
Scene dockLists the nodes of the open scene
Inspector dockEdits the properties of the selected node
Bottom panelDebug console, animation editor, audio mixer and more. It is folded by default

Step 4: Understand nodes and scenes

Two ideas carry almost everything in Godot. A node is the smallest building block. A scene is one or more nodes arranged in a tree, saved as a file. A player character might be a CharacterBody2D node with a camera, a sprite and a collision shape as children. Names ending in "2D" or "3D" tell you the dimension the node works in.

Scenes are reusable. A character, a weapon, a menu or a whole level can each be a scene, and you can nest scenes inside other scenes. The scene tree is the hierarchy that holds all running scenes together.

Nodes talk to each other through signals, which are events a node emits. A button emits a signal when it is pressed, and collisions and area entries have built-in signals. This is Godot's version of the observer pattern, and it lets you react to an event without hard-wiring one node to another in code.

Step 5: Create your first scene

  1. In the Scene dock, pick a root node preset: 2D Scene (a Node2D), 3D Scene (a Node3D) or User Interface (a Control). Choose Other Node to pick any node type.
  2. In the Create New Node dialog, type a name to filter the list, select the node and click Create.
  3. Select the node and edit its properties in the Inspector dock on the right.

The official tutorial creates a Label and edits its Text property, and the scripting tutorial uses a Sprite2D. Either works for a first try. For the script example below, make the root a Sprite2D and give it a texture in the Inspector.

Step 6: Run the scene and the project

Click Run Current Scene in the top right, or press F6 (Cmd + R on macOS). If the scene has not been saved, Godot asks you to save it first. The tutorial uses the name label.tscn.

Close the game window, or press F8 (Cmd + . on macOS), to stop it.

To run the whole project, press F5 (Cmd + B on macOS). The first time, Godot asks for a main scene. Click Select, then double-click your scene file. From then on, F5 always starts from that scene.

Step 7: Attach a script to a node

Scripts give nodes behaviour. In the Scene dock, right-click the Sprite2D node and choose Attach Script. In the Attach Node Script window, change the Template from Node: Default to Object: Empty, leave the other options alone and click Create. The Script workspace opens a file named sprite_2d.gd that contains one line:

extends Sprite2D

That line means the script adds behaviour to a Sprite2D. Add these variables and function below it, copied from the official tutorial:

var speed = 400
var angular_speed = PI

func _process(delta):
	rotation += angular_speed * delta

	var velocity = Vector2.UP.rotated(rotation) * speed

	position += velocity * delta

Godot calls _process once per frame, and delta is the time since the last frame. Multiplying by delta keeps the motion the same speed on fast and slow machines. Save the script, go back to the scene and press F6. The sprite should turn and travel in a circle.

A quick way to confirm a script is attached is to add a _init function that calls print("Hello, world!"). The text shows up in the Output panel when you run the scene. The tutorial tells you to delete it afterwards.

Step 8: React to a button with a signal

Add a Button node to the scene. Select it, open the Signals tab next to the Inspector, and double-click pressed. In the connection window pick the Sprite2D as the receiver and click Connect. The editor generates a method called _on_button_pressed and opens the script. The tutorial fills it in like this:

func _on_button_pressed():
	set_process(not is_processing())

This switches _process on and off, so the button starts and stops the sprite's movement. Run the scene again with F6 and click the button.

Where to go next

The documentation's Getting Started section has a page called "Learn to code with GDScript", which is the logical next read. Follow the version of the docs that matches your editor, because code and menu names can differ between 4.x releases.

If something does not work

  • Nothing moves when you run the scene. Check that the script is attached to the node and saved, and that you pressed F6 on the scene you are editing.
  • F5 asks for a main scene every time. You have not picked one yet. Choose your scene file in the prompt.
  • The Asset Library is empty. Click "Go Online" first, since it does not connect by default.
  • C# code will not build. You need the .NET edition of Godot and the .NET SDK installed.

Frequently asked questions

Do I need to install Godot?
No. The Windows download is a self-contained program: the download page says to extract it and run it, with no installation. Keep the executable in a folder you will remember, because the Project Manager that opens on launch is where you create and reopen projects.
Should I download the Standard or the .NET version of Godot?
Download Standard if you plan to write GDScript, Godot's built-in language. The .NET edition adds C# support and also requires the separate .NET SDK. The Steam, itch.io and Epic Games Store releases do not include C# support.
What is the difference between F5 and F6 in Godot?
F5 runs the whole project, starting from the main scene you chose. F6 runs only the scene that is currently open in the editor. On macOS the shortcuts are Cmd + B for the project and Cmd + R for the current scene. F8 (Cmd + . on macOS) stops the running game.
Do I have to know programming to start with Godot?
You can build and run scenes from nodes without writing code. Behaviour such as movement or reacting to a button needs a script, and GDScript is the language the official tutorials use. The docs have a separate 'Learn to code with GDScript' page for beginners.

Sources