Play Game Design · Godot Basics · 2 of 10

Nodes & scenes

Every Godot game is built from two ideas: nodes (single things that each do one job) and scenes (groups of nodes you can save and reuse). Play with them here first, then build a reusable coin in Godot.

⏱ About 15 minutes✅ Needs Basics 1
0 of 4 complete
1

Feel it: parents and children

Move the Player around and watch what happens to the nodes attached to it.

Hat's parent:
Mission
    2

    Name it

    What you just played with, in Godot's words.

    Node

    One thing, one job

    A node is the smallest building block: a picture (Sprite2D), a collision shape (CollisionShape2D), a camera (Camera2D), a sound (AudioStreamPlayer2D). Godot has hundreds, and each does one thing well.

    Tree · parent · child

    Nodes nest

    Nodes are arranged in a tree, like folders. A child moves, rotates, scales and hides with its parent, which is exactly what the hat did. The node at the top is the root.

    Scene

    A saved tree of nodes

    A scene is a group of nodes saved as a .tscn file: a player, a coin, a whole level. It's how you build one thing and keep it organized.

    Instance

    Build once, use everywhere

    You can drop a scene inside another scene as many times as you like. Each copy is an instance. Change the original coin scene, and every coin in every level updates.

    The big idea: a Godot game is scenes inside scenes. Your level scene holds a player scene, ten coin scenes and an enemy scene, and each of those is just a few small nodes.
    3

    Prove it: build the scene

    Every game object is a scene with one root node at the top, which decides what the object is, plus child nodes that give it what it needs. First meet the four root types, then build three objects.

    Meet the root nodes

    To pick one, ask two questions: Should it block things? and Should it move by my code?

    👻
    Area2DDoesn't block · notices touches

    Things pass through it, but it knows when they do. Coins, spikes, checkpoints, doors.

    🧱
    StaticBody2DBlocks · never moves

    Solid and still. Floors, walls, platforms.

    🏃
    CharacterBody2DBlocks · moves by your code

    Solid, and you control how it moves. Players and enemies.

    📍
    Node2DNo physics at all

    Just a position. For grouping things or for decoration nothing touches.

    1Pick what it is (the root)
    2Add what it needs (children)
    4

    Build it in Godot: a reusable coin

    About 7 minutes. Open the project from Basics 1.

    1. Start a new scene. Go to Scene → New Scene. In the Scene dock, click the Other Node button. It only appears while a scene is empty. A window called Create New Node opens. Type Area2D in the search bar at the top of that window, click Area2D in the list and click Create. Double-click the new node and rename it Coin.Not the “Filter Nodes” box in the Scene dock. That one only searches nodes already in your scene. The + button next to it opens the same Create New Node window, for adding children.Double-check: the icon next to Coin should be blue, and the Inspector should show sections called Area2D, Node2D and Transform. A white circle icon means you picked plain “Node” by mistake (see Common problems). You picked Area2D in the builder: it detects when something touches it, which is perfect for collecting.
    2. Give it a picture. With Coin selected, click + and add a Sprite2D. Drag icon.svg from the FileSystem dock onto the Sprite2D's Texture field in the Inspector. Then set Transform → Scale to 0.4, 0.4.
    3. Give it a shape. Select Coin again and add a CollisionShape2D. In the Inspector, click the empty Shape field and choose CircleShape2D. Drag the orange dot in the viewport until the circle roughly covers the picture.Notice the yellow ⚠ next to the CollisionShape2D disappears once it has a shape. Godot warns you when a node is missing something it needs.
    4. Save it with Ctrl+S (Cmd+S) as coin.tscn. You've made your first reusable scene.
    5. Put coins in your level. Open main.tscn by double-clicking it in the FileSystem dock. Drag coin.tscn into the viewport three times, in different spots inside the purple rectangle.Drop each one in a different spot, or they'll stack on top of each other. Look at the Scene dock: you now have Coin, Coin2 and Coin3, each with a 🎬 icon. That means it's an instance of coin.tscn, not a copy of the nodes.
    6. Spread them out. To move a coin with the mouse, press Q (Select mode, the arrow in the toolbar above the viewport), then click and drag it. Prefer exact numbers? Select Coin2 in the Scene dock and set Transform → Position in the Inspector to 400, 300, then set Coin3 to 700, 300.
    7. See the magic. Go back to coin.tscn using the tabs above the viewport. Select the Sprite2D and set Visibility → Modulate to gold: click the white color box, find the Hex field in the color picker, type FFD700 and press Enter. Save, then switch back to main.tscn.
    8. Run it with F6 (Cmd+R).
    🛠 Common problems
    There's a yellow ⚠ next to Coin or CollisionShape2D

    Hover over it to read the message. Usually the CollisionShape2D has no shape yet (step 3), or it isn't a child of Coin. Drag it onto Coin in the Scene dock to fix that.

    I changed the color, but only one coin changed

    You edited one instance in main.tscn instead of the original coin.tscn. That's allowed (it's called an override), but it only changes that one coin. Click the ↺ revert arrow next to the property in the Inspector, then make the change inside coin.tscn instead.

    There's no Transform in the Inspector, and I can't move my coins at all

    Your Coin's root is a plain Node (white circle icon) instead of an Area2D. Plain Nodes have no position, so they can't move and all sit at the top-left corner. To fix it, open coin.tscn, right-click Coin in the Scene dock, choose Change Type…, pick Area2D and click Change. Save, then go back to main.tscn. Every coin can move now.

    My coins are stacked on top of each other and I can't move them apart

    Select one coin in the Scene dock (Coin2, for example), then set its Transform → Position in the Inspector to a new spot like 400, 300. Or press Q for Select mode and drag the top coin away. The next one will be underneath.

    I only see one coin, cut off in the top-left corner

    You ran the coin scene instead of the main one. F6 runs whichever tab is open. Click the main tab above the viewport, then press F6 again.

    The coins are huge

    Set the Sprite2D's Scale inside coin.tscn, not on the instances. Then every coin shrinks together.

    I can't find main.tscn

    It's the scene you saved in Basics 1. Look in the FileSystem dock under res://. If you skipped that, make a new 2D Scene and save it as main.tscn.

    Checkpoint

    A game window opens with a gray background, your tilted logo from Basics 1, and three smaller gold-tinted logos (your coins) where you placed them. You only changed the color once. Nothing moves yet; that's Basics 3.

    5

    Quick check

    Three questions, then you're done.

    🎉 You think in nodes now.

    You know what nodes and scenes are, how parents and children behave, and how to build one thing and reuse it everywhere. That's the core of how every Godot game is organized.

    Next · Basics 3: Moving things with code
    Your first script: make your coin spin and bob
    Start Basics 3 →