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

PlayerInventorySystem.v0.0.6a.unitypackage 61 MB
Jul 30, 2023
Git Repo (Newest version)
External
Jul 15, 2023

Get Player Inventory System

Leave a comment

Log in with itch.io to leave a comment.