Easy Melee Attack Setup - Godot FPS Series #15C @stayathomedev
Easy Melee Attack Setup - Godot FPS Series #15C  @stayathomedev
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
Easy Melee Attack Setup - Godot FPS Series #15CWater Refraction // Godot Shaders5 Games Made in Godot To Inspire You (07/23/25)5 Games Made in Godot To Inspire You (09/04/25)Context UI for Interactions // Make An FPS in GodotWeapon Position Lag - Godot FPS Series #23How To Create Smart Doors // Make An FPS in Godot5 Games Made in Godot To Inspire You (07/04/26)5 Games Made in Godot To Inspire YouI Made Mario in Godot So You Can Too5 Games Made in Godot To Inspire YouNEW Godot Engine 3D Mascot Unveiled
StayAtHomeDev |

Easy Melee Attack Setup - Godot FPS Series #15C

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER