Uploaded April 2026 | Updated September 2026, 2 weeks ago
In this episode, you'll add an attack state to your enemy so it can play an attack animation when close to the player. This completes the animation system foundation by applying what you learned in Episodes 15A and 15B.
By the end, your enemy will chase the player, stop when in melee range, and play an attack animation. The actual damage system comes in Episode 16.
-----------------------------------------------------------------------------------
🔥 GET THE SOURCE FILES
patreon.com/posts/make-fps-enemy-154768360?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=postshare_creator&utm_content=join_link
✅ GET THE STARTERKIT PROJECT
patreon.com/posts/make-fps-2-0-134340702
✅ MESH2MOTION
app.mesh2motion.org
✅ GET STATECHART ADDON
godotengine.org/asset-library/asset/1778
🎮 Wishlist My FPS Game, Children of Kronos
store.steampowered.com/app/3640450/Children_of_Kronos/?utm_source=youtube&utm_medium=description&utm_campaign=tutorial
-----------------------------------------------------------------------------------
CHAPTERS
0:00 Adding a Melee Attack State
0:20 Selecting and Importing an Attack Animation
1:29 Setting Up the Attack State in StateChart
2:32 Configuring Animation Tree Transitions
3:43 Fine-Tuning Cross-Fades and Transition Curves
5:00 Adjusting Switch Modes for Animation Completion
5:42 Coding the Melee Attack Logic
7:41 Implementing Range-Based Attack Triggers
9:20 Setting Up Looping Attack Animations
-----------------------------------------------------------------------------------
STAYATHOMEDEV ►► patreon.com/c/StayAtHomeDev_
TWITTER ►► twitter.com/StayAtHomeDev
BLUESKY ►► https://bsky.app/profile/stayathomedev.bsky.social
MY ITCH.IO PAGE ►► stayathomedev.itch.io
PATREON ►► patreon.com/c/StayAtHomeDev_
-----------------------------------------------------------------------------------
Resources:
GODOT ENGINE ►► godotengine.org
DOWNLOAD GODOT ►► godotengine.org/download
#godot #gamedev #fpstutorial
In this episode, you'll add an attack state to your enemy so it can play an attack animation when close to the player. This completes the animation system foundation by applying what you learned in Episodes 15A and 15B.
By the end, your enemy will chase the player, stop when in melee range, and play an attack animation. The actual damage system comes in Episode 16.
-----------------------------------------------------------------------------------
🔥 GET THE SOURCE FILES
patreon.com/posts/make-fps-enemy-154768360?utm_medium=clipboard_copy&utm_source=copyLink&utm_campaign=postshare_creator&utm_content=join_link
✅ GET THE STARTERKIT PROJECT
patreon.com/posts/make-fps-2-0-134340702
✅ MESH2MOTION
app.mesh2motion.org
✅ GET STATECHART ADDON
godotengine.org/asset-library/asset/1778
🎮 Wishlist My FPS Game, Children of Kronos
store.steampowered.com/app/3640450/Children_of_Kronos/?utm_source=youtube&utm_medium=description&utm_campaign=tutorial
-----------------------------------------------------------------------------------
CHAPTERS
0:00 Adding a Melee Attack State
0:20 Selecting and Importing an Attack Animation
1:29 Setting Up the Attack State in StateChart
2:32 Configuring Animation Tree Transitions
3:43 Fine-Tuning Cross-Fades and Transition Curves
5:00 Adjusting Switch Modes for Animation Completion
5:42 Coding the Melee Attack Logic
7:41 Implementing Range-Based Attack Triggers
9:20 Setting Up Looping Attack Animations
-----------------------------------------------------------------------------------
STAYATHOMEDEV ►► patreon.com/c/StayAtHomeDev_
TWITTER ►► twitter.com/StayAtHomeDev
BLUESKY ►► https://bsky.app/profile/stayathomedev.bsky.social
MY ITCH.IO PAGE ►► stayathomedev.itch.io
PATREON ►► patreon.com/c/StayAtHomeDev_
-----------------------------------------------------------------------------------
Resources:
GODOT ENGINE ►► godotengine.org
DOWNLOAD GODOT ►► godotengine.org/download
#godot #gamedev #fpstutorial








![I Made Mario in Godot So You Can Too
Hey everyone, over the past couple months, Ive been busy building a complete 3D Platformer Course for Godot, inspired by the gameplay and movement of Mario.
🔔 Get The Course - Exclusive $45 OFF Coupon
[COUPON EXPIRED]
⭐ Course Page - Launches July 12
https://coloso.global/en/products/indiegamedeveloper-stayathomedev-us
Over 15 hours of tutorials across 28 videos covering everything from character movement and camera systems to enemy AI, save systems, UI, and a full menu system. The course starts with a blank project and ends with a complete, shippable game you built yourself.
3D assets used are from Creative Commons source including: GDQuest, Kenney, and KayKit.
✅ SUPPORT THE CHANNEL, GET TUTORIAL SOURCE FILES
https://www.patreon.com/c/StayAtHomeDev_
🔥 Wishlist My Godot Game, Children of Kronos
https://store.steampowered.com/app/3640450/Children_of_Kronos/?utm_source=youtube&utm_medium=description&utm_campaign=course
STAYATHOMEDEV ►► https://www.patreon.com/c/StayAtHomeDev_
TWITTER ►► https://twitter.com/StayAtHomeDev
BLUESKY ►► https://bsky.app/profile/stayathomedev.bsky.social
MY ITCH.IO PAGE ►► https://stayathomedev.itch.io/ I Made Mario in Godot So You Can Too](https://i.ytimg.com/vi/vrj3sPeWzBk/mqdefault.jpg)

