2D Metroidvania - 11 - Killing the player and reloading the scene (plus what's next)
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
Timeline:
00:00 Introduction
00:20 Changing the pace of release of video in march
01:07 Starting
01:33 Create the dead function
02:01 Making sure I can't move my player when dead
02:17 Calling my dead state in the match statement
02:45 Coding the logic to trigger the states when we run out of life
03:29 Testing the code
03:49 Stopping the dead animation from looping
04:48 The curious case of the dead state in the air
05:48 Reloading the scene when we dies
06:48 Checking that the tree exist before to reload it
07:45 Resetting the amount of coin to 0 if we die
08:44 Sword not working and how to fix it
10:03 What I've planned for this serie
10:46 Outro