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...
Wishlist my game "Lone Knight" here: https://store.steampowered.com/app/22...
Create a procedurally generated 2D Roguelike in Godot 4:
Course: https://www.udemy.com/course/create-a...
Coupon code: LEARNGODOT4MARCH
Create a 2D RPG and a 3D game in godot 4:
Course: https://www.udemy.com/course/create-a...
Coupon code: LEARNGODOTMARCH
Learn Godot 4 by making 2 games:
Course: https://www.udemy.com/course/learn-go...
Coupon Code: LEARNGODOT4MARCH
Cours en Français: Créer un RPG en 2D avec Godot 4: (course in French)
Cours: https://www.udemy.com/course/creer-un...
Coupon code: APPRENDREGODOT2024
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
Смотрите видео Killing the enemy and looting coin in Godot 4 онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Jean Makes Games 16 Октябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,367 раз и оно понравилось 99 людям.