🎮 Tutorial Godot do Zero 2025 #2 – Movimentação Básica do Jogador - Andar e Pular

🎮 Tutorial Godot do Zero 2025 #2 – Movimentação Básica do Jogador - Andar e Pular

Introduction to Godot Development

Overview of the Project Setup

  • The video begins with a recap of downloading and installing Godot, along with an overview of the main components of the interface.
  • The focus is on creating a 2D scene, utilizing mouse controls for zooming in/out and panning across the XY axes, with a blue line indicating the camera view.

Creating the Root Node

  • The root node serves as the base for inserting all other elements into the scene.
  • A new 2D scene is created and renamed to "game," establishing it as the foundation for further development.

Saving and Organizing Files

  • The empty scene needs to be saved; resources will be organized within a designated folder structure.
  • A new folder named "cine" is created to store all scenes, ensuring better organization within the project files.

Adding Player Node

Initial Player Setup

  • A temporary player node is added to represent character functionality during development.
  • Using keyboard shortcuts allows for quick addition of child nodes, facilitating efficient workflow.

Configuring Character Properties

  • Within the 2D node options, various elements can be inserted; filtering by "character" reveals available templates like CharacterBody2D.
  • Nodes come pre-configured with templates that can be customized according to specific game requirements.

Collision Shape Configuration

Addressing Warnings

  • A warning appears indicating that a CollisionShape2D must be added for proper functionality.
  • Adding a CollisionShape2D resolves one issue but introduces another requiring shape selection for collision detection.

Finalizing Character Collider

  • Selecting an appropriate shape (e.g., capsule shape), allows customization of collider dimensions based on character design needs.

Adjusting Collider Position

Visual Representation in Game

  • Adjustments are made to ensure that colliders align correctly with visual representations in-game without affecting gameplay mechanics.

Debugging Tools

Enabling Collision Visibility

  • Developers can enable visible collision shapes during debugging sessions to better understand interactions within the game environment.

Running Initial Game Test

Setting Main Scene

  • Attempting to run the game prompts selection of a main scene; this establishes which scene loads first when testing gameplay.

Implementing Basic Movement Script

Adding Scripts

  • A script is added to manage player behavior; it inherits properties from CharacterBody2D while allowing custom modifications.

Understanding Gravity Effects

  • Observations reveal gravity effects on characters due to existing script conditions checking if they are grounded or not.

Enhancing Gameplay Mechanics

Introducing Static Objects

A StaticBody2D node representing ground is added alongside necessary collision shapes, enhancing interaction dynamics within gameplay.

Testing Movement Functionality

  • After implementing basic movement scripts, players can move left/right and jump using keyboard inputs; however, adjustments are needed for continuous falling after jumps.

Conclusion and Future Steps

Upcoming Developments

  • Future videos will focus on adding images and refining game configurations for improved aesthetics and functionality.

Turn any video into a summary like this

YouTube links, meetings, lectures. With transcripts, search, and chat.

Video description

Contribua com pix: rafaelforbeck@gmail.com No segundo vídeo da série Godot do Zero 2025, você vai aprender os primeiros passos práticos para dar vida ao seu jogo de plataforma 2D! 📌 Neste vídeo, você vai aprender: O que são nós de cena na Godot Como criar os nós do jogador e do chão Como adicionar um script para movimentação do personagem Tudo isso de forma simples e explicada passo a passo, ideal para iniciantes! 🛠️ Conteúdo do vídeo: 00:00 – Preview 00:14 – Ambiente da cena 01:02 – Criação do nó raiz 02:16 – Savando a cena 03:19 – Criando o nó do jogador 05:27 – Adicionando colisor ao jogador 07:30 – Posicionando o jogador na cena 09:16 – Roando o jogo a primeira vez 10:09 – Adicionando script ao jogador 13:40 – Colocando o chão 15:30 – Resultado final 📌 Acompanhe a série completa e aprenda a criar seu próprio jogo do zero, passo a passo! Se inscreve no canal e ativa o sininho pra não perder os próximos vídeos 💾 GitHub (projeto no início do vídeo): https://github.com/RafaelForbeck/Godot-2025-Plataforma-2D-YouTube/tree/video-02-inicio 💾 GitHub - (projeto no final do vídeo): https://github.com/RafaelForbeck/Godot-2025-Plataforma-2D-YouTube/tree/video-02-final 💾 GitHub - (principal): https://github.com/RafaelForbeck/Godot-2025-Plataforma-2D-YouTube 📎 Download da Godot: https://godotengine.org/ 🔖 Hashtags: #Godot #Tutorial #GameDev #GameDevelopment #DesenvolvimentoDeJogos