To learn more about Blueprints and how they work, I’ve been creating a farming type game in Unreal Engine 5 using blueprints. I figured that everything I learned may also be useful to someone else, below you can follow along with each component of the game I’ve made.
The basic premise is that after a time delay you get a resource, this resource can be converted into something else and then sold for money. These posts will be linear in the way I’ve been learning blueprints with sometimes older components needing updates to include more advanced steps. You can’t do the advanced steps until the basic ones have been completed and verified they work.
If you’re beginner I recommend you start at the beginning and follow along. If you have blueprint experience and just want to know some details, every post will have a final version of the blueprint for that post’s goal at the end.
- Use starter content, set up basic world and import custom materials
- Use a mouse as main input device instead of a character
- Set up grain (actor) and have it change material with a delay when you click on it
- Set up a variable that increases when you harvest grain
- Set up an inventory system (widget), that shows the increase in variable after harvesting grain and is shown permanently on screen
- Set up a mill (actor) and have it deduct 2 grain for 1 flour
- Create a menu for mill that shows 2 options and a cancel button
- Hook up the different mill options to give different resources when its done
- Show a popup (widget) with time left on Grain after you put it on in progress
- Show a popup (widget) with time left on Mill after you put it on in progress and show different times for different resources
- Create an inventory building (actor) that shows the inventory (widget) when you click on it
- Create a data table with value of gold and xp for each variable you can harvest
- Update inventory to include total gold and xp
- Update grain to include xp when you harvest it
- Update mill to include xp when you collect from it
- Create a marketplace that shows a random item that you can sell and collect gold and xp from it
- Update marketplace to show a random amount of the random item that you can sell
- Update marketplace to show in red or green if you have enough items to sell
- Create a data table for a dungeon with rare items
- Create a random chance of getting a rare item after collecting from dungeon
- Create a gate for the dungeon that needs criteria met before it can run