Killing the enemy and looting coin in Godot 4

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



Category:
Tutorial
Duration: 14:27
1,183 views
54


In this video we gonna kill our enemy, play a dead animation and instance a coin when he dies, using Godot 4 . Like and subscribe!
#godot4 #godotengine #godot

Asset link is here: https://jeanmakesgames.itch.io/2d-rpg-asset

Wishlist my game "Lone Knight" here: https://store.steampowered.com/app/2211930/Lone_Knight/

For halloween I'm discounted my courses, valid until the 31st of October! :)

My godot engine 4 course is discounted here:
https://www.udemy.com/course/learn-godot-4-by-making-a-2d-game/?couponCode=HALLOWEENGODOT
Coupon Code: HALLOWEENGODOT

Create a 2d platformer / metroidvania in godot engine 3:
https://www.udemy.com/course/create-a-2d-platformer-game-with-godot-engine/?couponCode=HALLOWEENGODOT
coupon: HALLOWEENGODOT

Create a 2d rpg with godot engine 3:
https://www.udemy.com/course/create-a-2d-rpg-with-the-godot-engine/?couponCode=HALLOWEENGODOT
coupon: HALLOWEENGODOT

Learn C# in godot 3 by creating a 2d rpg:
https://www.udemy.com/course/learning-csharp-with-godot/?couponCode=HALLOWEENGODOT
coupon: HALLOWEENGODOT

Happy halloween to everyone!

Timeline
00:00 Introduction
00:29 Start
00:38 Adding the hitbox of my enemy
01:31 Setting the right layer to my enemy hitbox
01:55 Connect the signal of my area
02:21 Removing health point to our enemy
02:44 Removing health point ONLY when colliding with the sword
03:48 Killing the enemy when he has no health point
03:58 Creating our dead state
04:31 Creating the dead function
06:06 Creating a dead fx animation
07:58 Save my dead fx scene
08:15 Instancing my dead fx when my enemy die
09:08 Create a function to instance my dead animation
11:18 Looting a coin when the enemy dies
13:29 Fixing the size of the collision shape of my coins




Other Videos By Jean Makes Games


2024-02-192D Metroidvania - 1 - Creating the player and its animations
2023-12-22Coding combo input for my metroidvania || devlog 5
2023-12-20Making better enemies design by learning from Hollow Knight || devlog #4
2023-12-17Third devlog and making my game juicier with tween...but how?
2023-12-15Designing world for my Metroidvania
2023-12-14First devlog and making my main player worst somehow...but why?
2023-12-03Jumping and falling in 3D with animation & state machine || 3D RPG Serie in Godot 4.2
2023-11-25Two ways to opens door in my Godot 4.1 2D RPG game
2023-11-19Adding a house using modular assets in Godot 4
2023-10-18Using shader in Godot 4
2023-10-16Killing the enemy and looting coin in Godot 4
2023-10-123D RPG - Rotating the camera around the player with a controller #godot4 #godot #godotengine #rpg
2023-10-103D RPG - Coding the player movement and animations #godot4 #3d #rpg #3drpg #zelda #godot3d
2023-10-093D RPG - Setup our 3d project and creating the ground #3DRPG #rpg #3DRPGGodot #godot4 #godotengine
2023-10-08Creating an enemy that can patrol randomly #godot4 #godotengine
2023-08-25Creating the GUI - 2D RPG Serie In Godot 4.1 #godot4 #rpg #gamedev
2023-08-18Player life system & Killing the player #godot4 #2drpg #rpg #zelda #godotengine
2023-08-11Create coins & use Static variable for my 2D RPG in Godot 4.1 #godot4 #gamedev #tutorial
2023-08-08Create two type of cameras in Godot 4.1 - 2D RPG Serie #godot4 #2drpg #rpg #zelda
2023-08-042D Godot 4.1 RPG - 6 - Tilemap & terrain
2023-08-012D Godot 4.1 RPG - 5 - Adding a jump mechanic



Tags:
rpg
actionrpg
godot rpg
rpg tutorial godot
godot 4.1
godot 4 rpg
godot rpg tutorial
godot engine tutorial
godot engine zelda
rpg jump
jump rpg
zelda jump
zelda jump 2D
heartbeast
heartbeast rpg
godot autotile
godot tiles
godot terrains
godot 4 autotile
godot4.1
godot static variable
gdscript tutorial
gdscript2
static variable tutorial
create an enemy
enemy tutorial godot 4
enemy patrolling godot 4
godot 4
godot