2D Metroidvania - 2 - Coding the player movement
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