In this Godot FPS tutorial, you'll build a weapon inventory system with number key switching using a manager-based architecture. By the end, you'll carry multiple weapons, switch between them with number keys, and each weapon will maintain its own ammo count and unlock status.
This episode builds the foundation for weapon pickups in Episode 11.
What You'll Learn:
Creating a Managers autoload system
Scene-based manager architecture with groups
Weapon slot inventory with unlock tracking
Number key input handling (1-9 keys)
Per-weapon ammo management
-----------------------------------------------------------------------------------
✅ GET THE SOURCE FILES
https://www.patreon.com/posts/make-fp...
✅ GET THE STARTERKIT PROJECT
/ make-fps-2-0-134340702
🏆 The FPS Tutorial Series 2.0 Roadmap
https://www.stayathomedev.com/blog/fp...
🎮 Wishlist My FPS Game, Children of Kronos
https://store.steampowered.com/app/36...
-----------------------------------------------------------------------------------
CHAPTERS
00:00 Weapon Slot and Inventory System
00:33 Weapon Data Resource
01:40 Creating Pistol Data Instance
03:12 The Manager Autoload
05:12 Creating the Weapon Manager
07:05 Weapon Manager Script Setup
07:32 Input Maps
08:39 Switching Weapon Slots
09:35 Managing Ammo Per Slot
11:37 Proper Slot Numbers
11:59 Creating the Player Group
13:00 Player Controller Adjustments
13:30 Switch Weapon Function
14:40 Testing Weapon Switch
15:24 Fixing Ammo Management
16:59 Testing Ammo Usage
17:18 Variable Cleanup
17:56 Setting Initial Weapon
18:49 Fixing State Logic Errors
20:32 Fixing the Empty State
21:13 Final Test
21:41 Get the Project Source Files
-----------------------------------------------------------------------------------
STAYATHOMEDEV ►► https://stayathomedev.com
TWITTER ►► / stayathomedev
BLUESKY ►► https://bsky.app/profile/stayathomede...
MY ITCH.IO PAGE ►► https://stayathomedev.itch.io/
PATREON ►► / stayathomedev_
-----------------------------------------------------------------------------------
Resources:
GODOT ENGINE ►► https://godotengine.org/
DOWNLOAD GODOT ►► https://godotengine.org/download
#godot #gamedev #fpstutorial