Godot 4 Beginner Tutorial: Simple Enemy Melee Attack (Damage & Player Health)

Godot 4 Beginner Tutorial: Simple Enemy Melee Attack (Damage & Player Health)

957 Lượt nghe
Godot 4 Beginner Tutorial: Simple Enemy Melee Attack (Damage & Player Health)
Learn how to give your enemies basic attack capabilities in Godot 4! This beginner-friendly tutorial walks you through making an enemy detect the player nearby, perform a melee attack animation, and actually deal damage, reducing the player's health. Perfect for beginners wanting to add simple combat interactions to their games. We'll cover using detection zones (like Area2D/3D), triggering animations with AnimationPlayer, managing player health points, and writing the GDScript to connect everything. Timestamps: 0:00 Intro 0:21 adjust Player Scene 0:38 adjust Player Script 3:02 create Weapon Scene 4:27 create Weapon Script 6:59 adjust Enemy Scene 7:13 create Attack Animation 9:28 adjust Enemy Script 11:26 Testing 11:41 Outro Thanks for watching! Like and subscribe for more Godot tutorials. #GodotEngine #Godot4 #GodotTutorial #GameDevelopment #GDScript #EnemyAI #Combat #MeleeAttack #PlayerHealth #BeginnerTutorial