2D Metroidvania - 2 - Coding the player movement

Subscribers:
6,420
Published on ● Video Link: https://www.youtube.com/watch?v=bTRSMTdLX6o



Category:
Tutorial
Duration: 17:45
6,596 views
202


Second episode of my 2D metroidvania serie in Godot 4.2, we gonna learn how to code the movement of our player and call his animations through code! :)

Timeline
00:00 Introduction
00:56 Creating the player script
01:59 Starting to code the script
03:37 Creating the movement function
07:06 Creating the level scene
07:21 Instancing the player in the scene
08:06 Creating a camera
08:58 Controlling the speed of the player with clamp
09:56 Flipping the player sprite
12:46 Calling the animation through code
13:47 Creating a temporary platform
14:32 Importing the sprite of the platform with Edit region
16:17 Applying the gravity to the player
17:34 Outro

Wishlist "Lone Knight" on Steam: https://store.steampowered.com/app/2211930/Lone_Knight/

Asset: https://jeanmakesgames.itch.io/2d-metroid-youtube-serie

Download Godot 4.2: https://godotengine.org/download/windows/

New course "Create a 2D RPG game and introduction to 3D game": https://www.udemy.com/course/create-a-2d-rpg-and-a-3d-game-in-godot-42/?couponCode=GODOT42FEBRUARY
Coupon code: GODOT42FEBRUARY







Tags:
2d metroidvania
2d metroidvania godot
2d metroidvania godot 4
tutorial godot 4.2
tutorial godot 4
2d tutorial godot 4
2d platformer godot 4
2d platformer
game dev godot
game dev godot 4
hollow knight
hollow knight godot
hollow knight godot 4
animation godot 4
tutorial animation godot 4
create player godot 4
godot metroidvania tutorial
godot action platformer
godot 4 metroidvania tutorial
godot 4 action platformer
2d game development