🎮 Tutorial Godot do Zero 2025 #3 – Criando Animações para o Jogador - Andando e Pulando

🎮 Tutorial Godot do Zero 2025 #3 – Criando Animações para o Jogador - Andando e Pulando

Adding Images and Animations to the Player

Introduction to Scene Setup

  • The previous video covered adding objects like the player and ground, along with basic player movement.
  • The KCK Terbar 2D object will be removed as it was temporary; now a better setup will be implemented.
  • The player character will be created as a separate entity for reuse across multiple game levels instead of creating new instances in each level.

Creating a New Scene for the Player

  • A new scene is initiated by clicking the "+" button, starting with a root node similar to previous setups but using Character Bar 2D.
  • The newly created player node is renamed and configured with necessary components like Collision Shape 2D.
  • A collision shape must be defined for the player, mirroring steps from earlier videos.

Organizing Game Entities

  • The player scene is saved in a new "entities" folder rather than within the main scenes folder for better organization.
  • This organizational structure allows easy management of various entities such as players, enemies, and collectible items throughout development.

Integrating Player into Game Scene

Reusing Player Entity

  • To bring the player into the game scene, users can either use an icon or drag-and-drop method from previously created scenes.
  • After inserting the player into the game scene, any duplicate instances are removed to maintain clarity.

Configuring Player Properties

  • Upon running the game (F5), it's noted that while functional, the player's size appears too small without scripts attached.
  • The original script is reattached to ensure functionality remains intact after moving between scenes.

Importing Sprites for Animation

Setting Up Sprite Resources

  • A new folder named "sprites" is created within resources to store images used in-game.
  • Users are encouraged to download sprite packs from specified sources; specifically mentioning using Penguin images for consistency in tutorials.

Preparing Animation Assets

  • It’s recommended that beginners follow along closely with provided assets to ease learning during initial stages of development.

Adding Animated Sprite Node

Configuring Animated Sprite Node

  • An Animated Sprite 2D node is added under the player node to enable image display capabilities during gameplay.
  • Users must create sprite frames which define animation sequences; this involves importing specific images representing different states of motion.

Defining Idle Animation Frames

  • An idle animation frame set up begins by renaming default animations and importing relevant images from downloaded sprite assets.

Finalizing Animation Settings

Adjusting Texture Filters

  • Texture filtering settings are adjusted from inherited defaults to nearest neighbor filtering suitable for pixel art styles.

Testing Animation Functionality

  • After setting up animations correctly, testing reveals issues with visibility and playback speed which need adjustments before finalizing configurations.

Adjusting Camera Settings

Resizing Camera Viewport

  • Instead of resizing individual elements like players or backgrounds, camera dimensions are modified for uniform scaling across all assets.

Final Adjustments Before Next Video

  • Future videos will focus on enhancing character controls including turning mechanics and additional animations when jumping or walking.

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 terceiro vídeo da série Godot do Zero 2025, você vai importar os primeiros sprites do personagem e configurar animações usando o nó AnimatedSprite2D. 📌 Neste vídeo, você vai aprender: Como importar sprites para o projeto Como fatiar imagens em frames de animação Como criar e configurar uma nova cena para o jogador Como usar o AnimatedSprite2D para animações frame a frame Como importar a cena do player para a cena principal (game) Como ajustar o tamanho da janela (viewport) do jogo Tudo isso explicado passo a passo, de forma prática e fácil de entender, ideal para quem está começando com a engine Godot! 💡 Se você quer criar jogos 2D do zero, essa série é pra você! 🛠️ Conteúdo do vídeo: 00:00 – Introdução 00:17 – Criando a cena do jogador 03:48 – Importando a cena do player no jogo 05:56 – Importando os assets 08:45 – Criando a animação 15:53 – Ajustando o tamanho da janela 📌 Acompanhe a série completa e aprenda a criar seu próprio jogo de plataforma 2D com Godot, do zero! Se inscreva no canal Rafael Forbeck | Game Dev e ative o sininho 🔔 para não perder os próximos vídeos! 🐧 Download das imagens: https://grafxkid.itch.io/ 💾 GitHub – projeto no início do vídeo: https://github.com/RafaelForbeck/Godot-2025-Plataforma-2D-YouTube/tree/video-03-inicio 💾 GitHub – projeto no final do vídeo: https://github.com/RafaelForbeck/Godot-2025-Plataforma-2D-YouTube/tree/video-03-fim 💾 GitHub – principal (última versão): https://github.com/RafaelForbeck/Godot-2025-Plataforma-2D-YouTube 📎 Download da Godot: https://godotengine.org/ 🔖 Hashtags: #Godot #Tutorial #GameDev #GameDevelopment #DesenvolvimentoDeJogos