Godot Tutorial - Creating a 2D TOP-DOWN Player Controller
Access COMPLETE COURSES on building games with Godot HERE: https://academy.zenva.com/product/godot-game-development-mini-degree/?zva_src=youtube-description-godot2dtopdowncontroller
TRANSCRIPT
Welcome back everyone. In this lesson, we are gonna begin to create our player controller. This is going to be a player who we can move left, right, up, down and also have the ability to interact with things such as chests and enemies. So, to begin, I'm going to go scene, new scene, and we want to have a root node of other node here, and I'm going to search up KinematicBody2D. And this KinemeticBody2D node basically means that we have the ability to move this object around. This is really good if you're making a character, if you're making a platformer character, a top down character, anything that you want to move based on inputs. Uh, KinematicBody2D's are really good as they also take collision into consideration. So I'm gonna rename this by double clicking and I'm gonna call it our player. I'm also gonna save this and I'm gonna save it to our main folder right here as player.tscn, so save that, there we go. Now, on our player here, we need a few components. First of all, we need a sprite so we can actually see what our player looks like. Now, later on we're gonna remove this sprite and actually replace it with an animated sprite node so that we can have sprite animations, but right now while we're setting it up we're just gonna have in our sprite right here. So, sprites player. And I'm just gonna drag in the player_s_0 node right here. There we go, we can select the player. Set them to be in the center of the scene, there we go. And, as this player, I'm gonna rename this sprite to Sprite. We also want to attach another node which is gonna be of type collision shape 2D, so collision shape 2D. This is gonna give us a collider so we can't just move through objects, we have to, we're gonna bump into them. So, we go shape here, and I'm gonna set this shape to be a capsule. You can set it to be a rectangle if you want, but I just feel that capsules are really good if you move around corners, you don't get stuck. You can sort of slide around corners with capsules. So I'm gonna resize the height here, resize the width and just sort of get the rough dimensions of the player.
Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Godot Tutorial - Creating a 2D TOP-DOWN Player Controller», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.
Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.
Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!
Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.