How To Start Making Games With Godot 4! — Transcript
Full transcript
- 0:05I'm going to be using go do version 4.5
- 0:08which you can get from their website at
- 0:10go.engine.org.
- 0:17[music]
- 0:19If you're on Windows, make sure to not
- 0:21use the console version.
- 0:24When you open up God, you will first see
- 0:26the projects menu. Here you can open and
- 0:29create projects. Let's start by creating
- 0:32a new project.
- 0:37All right, let's add a project name. You
- 0:40can name it whatever you want, but I'm
- 0:41going to call it getting started.
- 0:44Now, let's find a location to store our
- 0:46project folder. I'm going to select this
- 0:49folder called gold. Tutorial projects
- 0:51under my documents.
- 0:54Don't worry about the rest of the
- 0:55settings. We can change those later.
- 0:57[music] Now just press create.
- 1:02Now we are in the editor. [music]
- 1:04This is where you're going to be
- 1:05developing your game. This is the
- 1:08viewport where you'll be moving around
- 1:10objects in your game. [music]
- 1:14This is the inspector where you'll be
- 1:16editing nodes.
- 1:20This is the toolbar. This will allow you
- 1:22to change whether you're moving,
- 1:24rotating, or even scaling [music] the
- 1:26object.
- 1:30This is the scene tree [music] for when
- 1:32you add nodes to your world, they will
- 1:34show up here. Nodes are, in other words,
- 1:37just objects.
- 1:43This is the file system. This shows the
- 1:46files inside your project folder,
- 1:48including textures, sounds, and even
- 1:51models.
- 1:55At the top of the editor, we have
- 1:57multiple buttons. On the left side, we
- 2:00can edit various parts of our project
- 2:02and also we can edit parts of the editor
- 2:05itself. In the middle, we have various
- 2:07menus, including the 2D, 3D, and also
- 2:12our script editor, the game preview, and
- 2:15the asset lip, which allows us to add
- 2:17plugins to our project. On the right
- 2:20side, you could play, pause, or stop the
- 2:23game.
- 2:25At the bottom of the editor is where
- 2:27your output and debugger is. The
- 2:29debugger allows us to see certain errors
- 2:32about our code as the game runs.
- 2:36Before we start making our game, I would
- 2:39recommend downloading my free texture
- 2:40pack for this tutorial. This will make
- 2:42it quicker to get our game functioning.
- 2:44The link will be in the description.
- 2:48To begin making our game, we first need
- 2:51a level or world. We can do this by
- 2:54creating what's called a scene. A scene
- 2:57in Go dot is a file that contains nodes
- 3:00which are organized inside a tree as
- 3:03shown here.
- 3:10Scenes are used for more than just
- 3:13levels.
- 3:15They are used to make complicated
- 3:17objects that contain multiple nodes to
- 3:20function,
- 3:22including the player, which likely
- 3:24contains a node that has physics applied
- 3:27to it, a node that displays an image,
- 3:30and a node that contains the collision
- 3:33shape of the player.
- 3:39When you first create your project, you
- 3:41start in a empty, unsaved scene. Here
- 3:47it asks you whether you want the root of
- 3:49the tree to be a 2D node, 3D node,
- 3:51[music] or a control node. Pick 2D node.
- 4:03Now save the scene. This can be our
- 4:05level.
- 4:12Name it anything you want.
- 4:18If we accidentally close [music] it, we
- 4:20can open it back up inside the file
- 4:22system.
- 4:34Drag this picture [music] over into the
- 4:36viewport.
- 4:39Now play the game.
- 4:44We didn't select a scene for the game to
- 4:46start up in yet. [music] Let's go ahead
- 4:49and select our level that we made.
- 4:53[music]
- 4:55When you start the game for the first
- 4:57time, it may take a minute to load.
- 5:01[music]
- 5:03There we go. Now we can see our picture.
- 5:11These buttons here are mainly for
- 5:13debugging.
- 5:16Let's go ahead and close this and get
- 5:18started into actually making our game.
- 5:20[music]
- 5:23Quick note about the viewport controls.
- 5:26Middle mouse button moves the view
- 5:28around and scroll wheel zooms in and
- 5:30[music] out.
- 5:35If you downloaded my texture pack, go
- 5:37ahead and drag it into the file system.
- 5:39>> [music]
- 5:39>> This will duplicate it into our project
- 5:41folder.
- 5:46As you can see, the textures are very
- 5:49small. [music] This is because the game
- 5:51size in the project settings needs to be
- 5:54smaller.
- 5:55Go ahead and open the project settings.
- 5:58[music]
- 5:59Click on window under the display
- 6:01category. Enable advanced settings.
- 6:04[music]
- 6:04Set viewport width to 384 and height
- 6:08[music]
- 6:09to 216.
- 6:12Then set window width to 1280 and height
- 6:15[music]
- 6:16to 720. Also set stretch mode to canvas
- 6:20items.
- 6:28You may not see anything when you run
- 6:30the game. This [music] is because the
- 6:32small blue square in the viewport has
- 6:34moved.
- 6:36We need to move objects inside it
- 6:38because this square is actually the
- 6:40game's view.
- 6:42This won't matter when we add a camera
- 6:45into our level scene. Now go ahead and
- 6:49delete these sprite 2Ds and we will make
- 6:51a player object instead.
- 6:55We need a node that has playerlike
- 6:57physics so our player can move, jump,
- 7:00and collide with other objects.
- 7:04Right click on the root node in the
- 7:06scene tree. After that, click add child.
- 7:11Search for character body 2D. Double
- 7:14click it or press create after selecting
- 7:17it.
- 7:18Now do the same thing, but instead right
- 7:21click the character body 2D node and add
- 7:24a sprite 2D node.
- 7:30Go ahead and add a texture to the sprite
- 7:322D node by dragging one of the player
- 7:35type images from the file system into
- 7:38the texture slot in the inspector on the
- 7:41right.
- 7:43You may notice that the texture is
- 7:45blurry. This is because the texture has
- 7:47a filter on it. We need to go into
- 7:50project settings and fix that. Search
- 7:53for textures, then change default
- 7:55texture filter to nearest.
- 7:59Let's go ahead and make the sprite 2D
- 8:02show only one frame of the animation in
- 8:04the image. Go over to the inspector
- 8:07while the sprite 2D node is selected and
- 8:10enable region. Then press edit region.
- 8:14It is recommended to change the snap
- 8:17mode to grid snap. After that, make the
- 8:21square surround one of the frames in the
- 8:23image. Once you're done, just press
- 8:25close.
- 8:28Now, we need a collision shape 2D so our
- 8:31player can collide with objects,
- 8:33including the floor.
- 8:36Just add [music] a child to the
- 8:38character body 2D and search for
- 8:40collision shape 2D. After you add it, go
- 8:44into the inspector and select the
- 8:46capsule shape in the shape slot.
- 8:50Now just resize it.
- 8:55If you want to quickly move something
- 8:56you have selected, just hold the Alt key
- 8:59on your keyboard. Then you'll be able to
- 9:01drag the [music] arrows to move it.
- 9:06Let's rename the character body 2D node
- 9:08to player.
- 9:11After that, we can add a script.
- 9:15Go do has some templates for specific
- 9:17nodes. You will use one to make the
- 9:20movement of the player. If you would
- 9:22rather have it in a folder, go ahead and
- 9:25create one, then save it inside it.
- 9:29If you want to learn more about coding,
- 9:32I will soon have a video just for that,
- 9:35if not already have one.
- 9:46This code may seem overwhelming, but we
- 9:49don't have to worry about this at the
- 9:50moment.
- 9:56We can play the game and see what
- 9:58happens. Now, as expected, our player
- 10:01has no platform to stand on, so he just
- 10:04falls.
- 10:07It's an easy fix, but first we should
- 10:09save our player as a separate scene.
- 10:12This will allow us to place it in any
- 10:14scene, and any changes to the player
- 10:17scene will take effect to all scenes
- 10:19that has it. Just rightclick the player,
- 10:22also known as the character body 2D, and
- 10:25click on save branches scene.
- 10:34Go ahead and move the player by holding
- 10:36Alt, then holding down leftclick, then
- 10:38moving your mouse.
- 10:40We can make a floor by creating a static
- 10:43body 2D. As the name suggests, it
- 10:46usually doesn't move.
- 10:49It [music] can still be used to make
- 10:50moving platforms, however.
- 10:53Make sure to add it to the [music] root
- 10:55node and not the player. Otherwise, we
- 10:59won't get the results we were hoping.
- 11:03After that, add a sprite 2D and add a
- 11:06texture to it. Then, we can also add a
- 11:10collision shape 2D [music] with a box
- 11:12shape. Make sure to size the box to the
- 11:15texture.
- 11:21If you hold Alt while resizing, it will
- 11:25scale from the center.
- 11:30After that, go ahead and select the
- 11:32static body 2D in the scene tree. Then
- 11:35hold Alt and then move the static body
- 11:372D to where you want. I'm going to use
- 11:40it as a floor.
- 11:42Use the arrow keys to move around. You
- 11:45may notice it is way too fast. Let's
- 11:47change that. Switch over to the script
- 11:50tab and look inside the player.gd GD
- 11:53script and change the speed variable to
- 11:55a lower value.
- 12:05When you press spacebar to jump, it
- 12:08jumps way too high. Let's go ahead and
- 12:11change that in the script tab as well.
- 12:26We can build levels with static bodies,
- 12:29but the easier way is to use a tile map,
- 12:32which in a way allows us to paint our
- 12:34level.
- 12:36Go ahead and delete the static body in
- 12:38the scene tree. Now add a tile map layer
- 12:41node to the root node. Normal tile maps
- 12:45are deprecated, so don't use those.
- 12:52Make a tile set inside the tile set slot
- 12:55in the inspector while the tile map
- 12:57layer is selected.
- 12:59Tile sets allow us to make placeable
- 13:01tiles for our level, including the
- 13:04collisions. Drag and drop the tile set
- 13:07texture into the tile sources box. A
- 13:10menu will pop up asking if you want to
- 13:12automatically create tiles in the alias.
- 13:15Click yes. This will set up the texture
- 13:18to separate each [music] 16x6 square
- 13:20inside the texture into a tile.
- 13:26Now we need to create some collisions
- 13:28for these tiles so our player can
- 13:30collide with them. Click on the tile set
- 13:33we just created in the inspector. Open
- 13:36physics layers and then press [music]
- 13:39add element.
- 13:41These settings may look confusing, but
- 13:43we don't need to worry about them right
- 13:44now.
- 13:46Now click the paint button under tile
- 13:48sets. Then select the property editor
- 13:51and click physics layer zero.
- 13:55This new menu shows what the collision
- 13:57shape looks like [music] and allows us
- 13:59to design almost any shape. When we hold
- 14:02left click across the tiles, it will
- 14:05paint this collision shape on them.
- 14:10For more complex shapes, we [music] need
- 14:12to design it. And to make it easier,
- 14:15select grid snap, then adjust the dots.
- 14:20After you are done, just paint the new
- 14:22shape on the tiles [music] you want to
- 14:23have it. For collisions that are not
- 14:26square, you may [music] need to use the
- 14:28tools above the dots, which allows you
- 14:31to add, edit, and remove dots.
- 14:35There needs to be at least three dots to
- 14:37have a shape. The add tool usually tries
- 14:40to add another collision shape and not
- 14:43just one point. So, if you want just
- 14:45another point, left click on the side of
- 14:48one of the collision shapes. Yes, with
- 14:50the add tool, you can have multiple
- 14:53shapes inside one tile.
- 14:56Now you can open the tile map menu at
- 14:59[music] the bottom. Select a tile and
- 15:02start drawing a level.
- 15:14I forgot to do this while I was
- 15:16recording, [music] but here is how to
- 15:18duplicate the tile map layers properly.
- 15:22Save the tile set in the inspector.
- 15:31After that, create a new tile map layer
- 15:33node inside the root node. Now, drag and
- 15:37drop the tile set file into the tile set
- 15:39slot in the inspector.
- 15:42Because we just saved the tile set, we
- 15:45can create as many tile maps as we want.
- 15:47And we can just drag and drop the file.
- 15:50If you want the tile map to show above
- 15:52the player, make sure the tile map node
- 15:54is either underneath the player or its
- 15:58Zindex is higher than the players.
- 16:01The Zindex is located under the ordering
- 16:04tab in the inspector when selected on a
- 16:06node.
- 16:18I hope you learned something new. If you
- 16:20are wanting [music] more, let me know in
- 16:22the comments or simply by liking the
- 16:24video. I want this video to maybe give
- 16:27you a basic understanding on how the
- 16:29editor works.
- 16:31There is still plenty more to know
- 16:33about, including signals, inputs,
- 16:37scripting, animations, groups, and so
- 16:40on.
- 16:42I have some extra textures in the
- 16:43texture pack that should help you if you
- 16:45decide to watch more videos and learn to
- 16:48add some more stuff to this game.
- 16:51Other than that, I hope you enjoyed the
- 16:53video.
- 16:57[music]
About this transcript
This page contains the full transcript of How To Start Making Games With Godot 4! by ChimmyChim, generated from the public captions YouTube serves with the video. The transcript has 2,090 words across 333 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.
What you can do with it
Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.
Free YouTube transcript tool
YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.