Welcome back to another Cowzy Friday update! As the development of The Cowzy Game continues, I’m excited to share this week’s progress on making the townsfolk resources gathering more fleshed out! Let's get started.
Resource Gathering in Action
The townsfolk in The Cowzy Game can now gather resources in a continuous loop! Whether they’re chopping wood, mining stone, or collecting other resources, they keep working after the initial order without needing constant player input.
UI Updates
To complement the new resource-gathering loop, I’ve updated the UI to reflect the townsfolk’s efforts. You can now see resources being added to the town’s inventory in real-time as they’re collected.
This is done by using Maps & Components primarily. Here is how it works:
Townsfolk have a BP_InventoryComponent
When the tool strikes the resource, the InventoryComponent adds 10 of the worked resource from the resource node by using a map.
When they hit their maximum, currently set to 30, they go to drop off their resource.
The drop-off is a separate sequence on the behavior tree that tells the AI to drop off the resources.

When the resources get dropped off, a few things happen
The resources get added to the Townhall total
The InventoryComponent for the Townsfolk that dropped off is emptied.
The UI then updates.
What’s Next?
Here’s a sneak peek at what’s coming up next in development:
Villager Energy: Implementing an energy system so villagers need rest after working for extended periods.
Construction: Now that we have the resources, it's a good time to start working on building up our village
Cows: A base cow Blueprint!
Share Your Thoughts!
As always, I’d love to hear your feedback or ideas! What kind of tasks or features would you like to see added for the townsfolk in The Cowzy Game?
Thank you for joining me for another Cowzy Friday update. Stay tuned for more as the game continues to grow and evolve! 🐄✨
Comments