2D Metroidvania - 2 - Coding the player movement

Published: 20 February 2024
on channel: Jean Makes Games
6,321
190

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/22...

Asset: https://jeanmakesgames.itch.io/2d-met...

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

My course (discounted until the 7th of august 2024):
2D Procedurally generated Roguelike in Godot 4.2:
Course: https://www.udemy.com/course/create-a...
Coupon Code: GODOT4JULY2024

Create a 2D RPG and a 3D game in Godot 4:
Course: https://www.udemy.com/course/create-a...
Coupon Code: GODOT4JULY2024

OTHERS:
Learn Godot 4 by making 2 games outdated:
Course: https://www.udemy.com/course/learn-go...

Cours en Français: Créer un RPG en 2D avec Godot 4: (course in French)
Cours: https://www.udemy.com/course/creer-un...


Watch video 2D Metroidvania - 2 - Coding the player movement online without registration, duration hours minute second in high quality. This video was added by user Jean Makes Games 20 February 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,321 once and liked it 190 people.