Placed Items and Crafting
After a few failed fixes this week I have managed to get Chests, Crafting Tables and Place-able items( i.e. torches) working in the demo and saved games. It was pretty messy and working through all that and required a few new classes and a fair bit or rewriting of existing logic.
I will work on cleaning up the mess that effort made in the code and updating comments where needed this next week.
To place objects, select the item in the item bar, focus (mouse 1 or left trigger on game pad), aim where you wish to place the item and press X on the game pad or left click with the mouse.
If you repeat the action while pointing at an existing placed item its panel (crafting, chest...) will be displayed when you are within range. if you move out of rage the panel will close.
Items placed in this manner will be saved and reloaded.
The Serializer now outputs an un-encrypted JSON version of the save data file to help you visualize what's going on a bit better. The JSON file is not read back in. So changes to it will not effect the real save game data.
Items placed in scene via the editor will not be saved in the save data file. items must be spawned by the Player inventory system to be recognized and included in the save data.
Files
Get Unity Player Inventory System
Unity Player Inventory System
Inventory and crafting system for Unity games
Status | Released |
Category | Assets |
Author | fideltfg |
Genre | Adventure, Role Playing, Survival |
Tags | Characters, Dungeon Crawler, First-Person, Horror, inventory, Third Person, Unity |
More posts
- 2D Demo(Simple)Jul 16, 2024
- V 1.0 releasedJul 01, 2024
- v1.0 DemoJun 28, 2024
- Working towards 1.0Jun 24, 2024
- Mining...againSep 17, 2023
- MiningSep 15, 2023
- Building a new Item Catalog...Sep 02, 2023
- Salvage v2Aug 29, 2023
- Item SalvageAug 25, 2023
Leave a comment
Log in with itch.io to leave a comment.