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 Player Inventory System
Player Inventory System
Player inventory system for your Unity game
Status | Prototype |
Category | Tool |
Author | Fideltfg |
Genre | Adventure, Role Playing, Survival |
Tags | Characters, Dungeon Crawler, First-Person, inventory, Singleplayer, Third Person, Unity |
More posts
- Mining...againSep 17, 2023
- MiningSep 15, 2023
- Building a new Item Catalog...Sep 02, 2023
- Salvage v2Aug 29, 2023
- Item SalvageAug 25, 2023
- Player Inventory System 0.0.5 alphaJul 23, 2023
- v0.0.3 fixesJul 19, 2023
- v0.0.2Jul 18, 2023
Leave a comment
Log in with itch.io to leave a comment.