Hello everyone,
I’ve just completed Day 13 of my Unreal Engine 5 Gameplay Engineer journey.
Today I upgraded my inventory system by implementing item stacking in C++.
Before this update, collecting three coins created three separate inventory entries:
Coin
Coin
Coin
Now the inventory automatically groups identical items into a single stack:
Coin x3
Features implemented:
Stackable Inventory System
Quantity Tracking
Inventory Stack Management
Consumable Integration
Stack Reduction on Item Use
Automatic Stack Removal
Current gameplay flow:
Collect Item
↓
Create Stack
↓
Increase Quantity
↓
Use Item
↓
Reduce Quantity
↓
Remove Empty Stack
Example output:
Coin x1
Coin x2
Coin x3
Using: Coin
Coin x2
Using: Coin
Coin x1
Using: Coin
Inventory Empty
Current project systems:
Day 1 - First C++ Actor
Day 2 - Character Movement
Day 3 - Health System
Day 4 - Sprint System
Day 5 - Double Jump
Day 6 - Interaction System
Day 7 - Collectible Items System
Day 8 - Inventory System
Day 9 - Equipment System
Day 10 - Item Usage System
Day 11 - Consumable Items System
Day 12 - Consumable Item Removal System
Day 13 - Stackable Inventory System
This upgrade makes the inventory behave much closer to a real RPG, survival game, or loot-based system.
Video:Day 13:https://youtu.be/GxD_hRCeYnI
I’d love to hear feedback, suggestions, or code review comments from other Unreal Engine developers.
Thank you!