The last weeks have gone by very fast. I managed to make an inventory system, using fantastic
tutorial series by
AfwfullMedia. These tutorials gave me a clue on the best approach for an inventory system.
The Database
I made an item database, where I can now easily add, edit or remove items. The item database is a list of item classes, each one containing a name, Id (for easy item access), description and more. I am considering making a custom editor script for my database, so I can give an apparel item other variables than a weapon.
|
The current Item Database |
The future User Interface
The user interface of the inventory is copied from the one made by
AwfullMedia in his tutorial series, but I want it to make it more like
this The Elder Scrolls V: Skyrim mod. I find this inventory very accessible and gives the player control over his items.
The current User Interface
But that is something to do later. My inventory now looks more like a World of Warcraft inventory, which does not suit my game. You can drag and drop items, switch places, and remove them from your inventory. When you remove them they will be thrown into the scene. When you hove over an item in you inventory, it will create a tooltip containing information about the item. The inventory is also dynamic, meaning it will adjust itself to your
screensize.
|
Dragging, dropping and a tooltip |
Picking up
After tossing an item into the scene, you will be able to pick it up again. It will add the item to your inventory again and you can toss it again. The
pick up is an extension I made without the use of AwfullMedia's tutorials.
|
The pickup inspector |
|
The pickup looks ingame
|
Thank you AwfullMedia for you great tutorials!
No comments:
Post a Comment