YouTube2Text

How To Start Making Games With Godot 4! — Transcript

by ChimmyChim · 2,090 words · 333 segments · language en · Watch on YouTube

Full transcript

  1. 0:05I'm going to be using go do version 4.5
  2. 0:08which you can get from their website at
  3. 0:10go.engine.org.
  4. 0:17[music]
  5. 0:19If you're on Windows, make sure to not
  6. 0:21use the console version.
  7. 0:24When you open up God, you will first see
  8. 0:26the projects menu. Here you can open and
  9. 0:29create projects. Let's start by creating
  10. 0:32a new project.
  11. 0:37All right, let's add a project name. You
  12. 0:40can name it whatever you want, but I'm
  13. 0:41going to call it getting started.
  14. 0:44Now, let's find a location to store our
  15. 0:46project folder. I'm going to select this
  16. 0:49folder called gold. Tutorial projects
  17. 0:51under my documents.
  18. 0:54Don't worry about the rest of the
  19. 0:55settings. We can change those later.
  20. 0:57[music] Now just press create.
  21. 1:02Now we are in the editor. [music]
  22. 1:04This is where you're going to be
  23. 1:05developing your game. This is the
  24. 1:08viewport where you'll be moving around
  25. 1:10objects in your game. [music]
  26. 1:14This is the inspector where you'll be
  27. 1:16editing nodes.
  28. 1:20This is the toolbar. This will allow you
  29. 1:22to change whether you're moving,
  30. 1:24rotating, or even scaling [music] the
  31. 1:26object.
  32. 1:30This is the scene tree [music] for when
  33. 1:32you add nodes to your world, they will
  34. 1:34show up here. Nodes are, in other words,
  35. 1:37just objects.
  36. 1:43This is the file system. This shows the
  37. 1:46files inside your project folder,
  38. 1:48including textures, sounds, and even
  39. 1:51models.
  40. 1:55At the top of the editor, we have
  41. 1:57multiple buttons. On the left side, we
  42. 2:00can edit various parts of our project
  43. 2:02and also we can edit parts of the editor
  44. 2:05itself. In the middle, we have various
  45. 2:07menus, including the 2D, 3D, and also
  46. 2:12our script editor, the game preview, and
  47. 2:15the asset lip, which allows us to add
  48. 2:17plugins to our project. On the right
  49. 2:20side, you could play, pause, or stop the
  50. 2:23game.
  51. 2:25At the bottom of the editor is where
  52. 2:27your output and debugger is. The
  53. 2:29debugger allows us to see certain errors
  54. 2:32about our code as the game runs.
  55. 2:36Before we start making our game, I would
  56. 2:39recommend downloading my free texture
  57. 2:40pack for this tutorial. This will make
  58. 2:42it quicker to get our game functioning.
  59. 2:44The link will be in the description.
  60. 2:48To begin making our game, we first need
  61. 2:51a level or world. We can do this by
  62. 2:54creating what's called a scene. A scene
  63. 2:57in Go dot is a file that contains nodes
  64. 3:00which are organized inside a tree as
  65. 3:03shown here.
  66. 3:10Scenes are used for more than just
  67. 3:13levels.
  68. 3:15They are used to make complicated
  69. 3:17objects that contain multiple nodes to
  70. 3:20function,
  71. 3:22including the player, which likely
  72. 3:24contains a node that has physics applied
  73. 3:27to it, a node that displays an image,
  74. 3:30and a node that contains the collision
  75. 3:33shape of the player.
  76. 3:39When you first create your project, you
  77. 3:41start in a empty, unsaved scene. Here
  78. 3:47it asks you whether you want the root of
  79. 3:49the tree to be a 2D node, 3D node,
  80. 3:51[music] or a control node. Pick 2D node.
  81. 4:03Now save the scene. This can be our
  82. 4:05level.
  83. 4:12Name it anything you want.
  84. 4:18If we accidentally close [music] it, we
  85. 4:20can open it back up inside the file
  86. 4:22system.
  87. 4:34Drag this picture [music] over into the
  88. 4:36viewport.
  89. 4:39Now play the game.
  90. 4:44We didn't select a scene for the game to
  91. 4:46start up in yet. [music] Let's go ahead
  92. 4:49and select our level that we made.
  93. 4:53[music]
  94. 4:55When you start the game for the first
  95. 4:57time, it may take a minute to load.
  96. 5:01[music]
  97. 5:03There we go. Now we can see our picture.
  98. 5:11These buttons here are mainly for
  99. 5:13debugging.
  100. 5:16Let's go ahead and close this and get
  101. 5:18started into actually making our game.
  102. 5:20[music]
  103. 5:23Quick note about the viewport controls.
  104. 5:26Middle mouse button moves the view
  105. 5:28around and scroll wheel zooms in and
  106. 5:30[music] out.
  107. 5:35If you downloaded my texture pack, go
  108. 5:37ahead and drag it into the file system.
  109. 5:39>> [music]
  110. 5:39>> This will duplicate it into our project
  111. 5:41folder.
  112. 5:46As you can see, the textures are very
  113. 5:49small. [music] This is because the game
  114. 5:51size in the project settings needs to be
  115. 5:54smaller.
  116. 5:55Go ahead and open the project settings.
  117. 5:58[music]
  118. 5:59Click on window under the display
  119. 6:01category. Enable advanced settings.
  120. 6:04[music]
  121. 6:04Set viewport width to 384 and height
  122. 6:08[music]
  123. 6:09to 216.
  124. 6:12Then set window width to 1280 and height
  125. 6:15[music]
  126. 6:16to 720. Also set stretch mode to canvas
  127. 6:20items.
  128. 6:28You may not see anything when you run
  129. 6:30the game. This [music] is because the
  130. 6:32small blue square in the viewport has
  131. 6:34moved.
  132. 6:36We need to move objects inside it
  133. 6:38because this square is actually the
  134. 6:40game's view.
  135. 6:42This won't matter when we add a camera
  136. 6:45into our level scene. Now go ahead and
  137. 6:49delete these sprite 2Ds and we will make
  138. 6:51a player object instead.
  139. 6:55We need a node that has playerlike
  140. 6:57physics so our player can move, jump,
  141. 7:00and collide with other objects.
  142. 7:04Right click on the root node in the
  143. 7:06scene tree. After that, click add child.
  144. 7:11Search for character body 2D. Double
  145. 7:14click it or press create after selecting
  146. 7:17it.
  147. 7:18Now do the same thing, but instead right
  148. 7:21click the character body 2D node and add
  149. 7:24a sprite 2D node.
  150. 7:30Go ahead and add a texture to the sprite
  151. 7:322D node by dragging one of the player
  152. 7:35type images from the file system into
  153. 7:38the texture slot in the inspector on the
  154. 7:41right.
  155. 7:43You may notice that the texture is
  156. 7:45blurry. This is because the texture has
  157. 7:47a filter on it. We need to go into
  158. 7:50project settings and fix that. Search
  159. 7:53for textures, then change default
  160. 7:55texture filter to nearest.
  161. 7:59Let's go ahead and make the sprite 2D
  162. 8:02show only one frame of the animation in
  163. 8:04the image. Go over to the inspector
  164. 8:07while the sprite 2D node is selected and
  165. 8:10enable region. Then press edit region.
  166. 8:14It is recommended to change the snap
  167. 8:17mode to grid snap. After that, make the
  168. 8:21square surround one of the frames in the
  169. 8:23image. Once you're done, just press
  170. 8:25close.
  171. 8:28Now, we need a collision shape 2D so our
  172. 8:31player can collide with objects,
  173. 8:33including the floor.
  174. 8:36Just add [music] a child to the
  175. 8:38character body 2D and search for
  176. 8:40collision shape 2D. After you add it, go
  177. 8:44into the inspector and select the
  178. 8:46capsule shape in the shape slot.
  179. 8:50Now just resize it.
  180. 8:55If you want to quickly move something
  181. 8:56you have selected, just hold the Alt key
  182. 8:59on your keyboard. Then you'll be able to
  183. 9:01drag the [music] arrows to move it.
  184. 9:06Let's rename the character body 2D node
  185. 9:08to player.
  186. 9:11After that, we can add a script.
  187. 9:15Go do has some templates for specific
  188. 9:17nodes. You will use one to make the
  189. 9:20movement of the player. If you would
  190. 9:22rather have it in a folder, go ahead and
  191. 9:25create one, then save it inside it.
  192. 9:29If you want to learn more about coding,
  193. 9:32I will soon have a video just for that,
  194. 9:35if not already have one.
  195. 9:46This code may seem overwhelming, but we
  196. 9:49don't have to worry about this at the
  197. 9:50moment.
  198. 9:56We can play the game and see what
  199. 9:58happens. Now, as expected, our player
  200. 10:01has no platform to stand on, so he just
  201. 10:04falls.
  202. 10:07It's an easy fix, but first we should
  203. 10:09save our player as a separate scene.
  204. 10:12This will allow us to place it in any
  205. 10:14scene, and any changes to the player
  206. 10:17scene will take effect to all scenes
  207. 10:19that has it. Just rightclick the player,
  208. 10:22also known as the character body 2D, and
  209. 10:25click on save branches scene.
  210. 10:34Go ahead and move the player by holding
  211. 10:36Alt, then holding down leftclick, then
  212. 10:38moving your mouse.
  213. 10:40We can make a floor by creating a static
  214. 10:43body 2D. As the name suggests, it
  215. 10:46usually doesn't move.
  216. 10:49It [music] can still be used to make
  217. 10:50moving platforms, however.
  218. 10:53Make sure to add it to the [music] root
  219. 10:55node and not the player. Otherwise, we
  220. 10:59won't get the results we were hoping.
  221. 11:03After that, add a sprite 2D and add a
  222. 11:06texture to it. Then, we can also add a
  223. 11:10collision shape 2D [music] with a box
  224. 11:12shape. Make sure to size the box to the
  225. 11:15texture.
  226. 11:21If you hold Alt while resizing, it will
  227. 11:25scale from the center.
  228. 11:30After that, go ahead and select the
  229. 11:32static body 2D in the scene tree. Then
  230. 11:35hold Alt and then move the static body
  231. 11:372D to where you want. I'm going to use
  232. 11:40it as a floor.
  233. 11:42Use the arrow keys to move around. You
  234. 11:45may notice it is way too fast. Let's
  235. 11:47change that. Switch over to the script
  236. 11:50tab and look inside the player.gd GD
  237. 11:53script and change the speed variable to
  238. 11:55a lower value.
  239. 12:05When you press spacebar to jump, it
  240. 12:08jumps way too high. Let's go ahead and
  241. 12:11change that in the script tab as well.
  242. 12:26We can build levels with static bodies,
  243. 12:29but the easier way is to use a tile map,
  244. 12:32which in a way allows us to paint our
  245. 12:34level.
  246. 12:36Go ahead and delete the static body in
  247. 12:38the scene tree. Now add a tile map layer
  248. 12:41node to the root node. Normal tile maps
  249. 12:45are deprecated, so don't use those.
  250. 12:52Make a tile set inside the tile set slot
  251. 12:55in the inspector while the tile map
  252. 12:57layer is selected.
  253. 12:59Tile sets allow us to make placeable
  254. 13:01tiles for our level, including the
  255. 13:04collisions. Drag and drop the tile set
  256. 13:07texture into the tile sources box. A
  257. 13:10menu will pop up asking if you want to
  258. 13:12automatically create tiles in the alias.
  259. 13:15Click yes. This will set up the texture
  260. 13:18to separate each [music] 16x6 square
  261. 13:20inside the texture into a tile.
  262. 13:26Now we need to create some collisions
  263. 13:28for these tiles so our player can
  264. 13:30collide with them. Click on the tile set
  265. 13:33we just created in the inspector. Open
  266. 13:36physics layers and then press [music]
  267. 13:39add element.
  268. 13:41These settings may look confusing, but
  269. 13:43we don't need to worry about them right
  270. 13:44now.
  271. 13:46Now click the paint button under tile
  272. 13:48sets. Then select the property editor
  273. 13:51and click physics layer zero.
  274. 13:55This new menu shows what the collision
  275. 13:57shape looks like [music] and allows us
  276. 13:59to design almost any shape. When we hold
  277. 14:02left click across the tiles, it will
  278. 14:05paint this collision shape on them.
  279. 14:10For more complex shapes, we [music] need
  280. 14:12to design it. And to make it easier,
  281. 14:15select grid snap, then adjust the dots.
  282. 14:20After you are done, just paint the new
  283. 14:22shape on the tiles [music] you want to
  284. 14:23have it. For collisions that are not
  285. 14:26square, you may [music] need to use the
  286. 14:28tools above the dots, which allows you
  287. 14:31to add, edit, and remove dots.
  288. 14:35There needs to be at least three dots to
  289. 14:37have a shape. The add tool usually tries
  290. 14:40to add another collision shape and not
  291. 14:43just one point. So, if you want just
  292. 14:45another point, left click on the side of
  293. 14:48one of the collision shapes. Yes, with
  294. 14:50the add tool, you can have multiple
  295. 14:53shapes inside one tile.
  296. 14:56Now you can open the tile map menu at
  297. 14:59[music] the bottom. Select a tile and
  298. 15:02start drawing a level.
  299. 15:14I forgot to do this while I was
  300. 15:16recording, [music] but here is how to
  301. 15:18duplicate the tile map layers properly.
  302. 15:22Save the tile set in the inspector.
  303. 15:31After that, create a new tile map layer
  304. 15:33node inside the root node. Now, drag and
  305. 15:37drop the tile set file into the tile set
  306. 15:39slot in the inspector.
  307. 15:42Because we just saved the tile set, we
  308. 15:45can create as many tile maps as we want.
  309. 15:47And we can just drag and drop the file.
  310. 15:50If you want the tile map to show above
  311. 15:52the player, make sure the tile map node
  312. 15:54is either underneath the player or its
  313. 15:58Zindex is higher than the players.
  314. 16:01The Zindex is located under the ordering
  315. 16:04tab in the inspector when selected on a
  316. 16:06node.
  317. 16:18I hope you learned something new. If you
  318. 16:20are wanting [music] more, let me know in
  319. 16:22the comments or simply by liking the
  320. 16:24video. I want this video to maybe give
  321. 16:27you a basic understanding on how the
  322. 16:29editor works.
  323. 16:31There is still plenty more to know
  324. 16:33about, including signals, inputs,
  325. 16:37scripting, animations, groups, and so
  326. 16:40on.
  327. 16:42I have some extra textures in the
  328. 16:43texture pack that should help you if you
  329. 16:45decide to watch more videos and learn to
  330. 16:48add some more stuff to this game.
  331. 16:51Other than that, I hope you enjoyed the
  332. 16:53video.
  333. 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.