- Home /
Item/inventory system-equipable items
so im making an RPG like game and need to know how to make an inventory system with equipable items, if someone can help me with instructions or help id be glad to take it. (status/beginner)
hehe you're welcome, don't forget to set the answer as accepted and to close the thread then ;)
Answer by lyzard · Jul 26, 2012 at 07:10 AM
well, you have three options: either you buy something already done (there are several on the asset store), or you take something open source (like http://forum.unity3d.com/threads/48229-RPG-Inventory-Source ) or you do it yourself, but then you'll have to learn programming. I just did one inventory last week. Here's how I proceed:
I looked at doing a grid texture, that I build automatically with a cell texture, using Texture2D.SetPixels
I looked at mouse clicks, mapping the screen mouse to the grid
I looked at items, how they are represented to span several cells in my case (you can have a simpler one in which 1 cell = 1 item)
I did the basic logic: when the mouse button is down, the item under the mouse is removed from the inventory, while the button is still hold, move the item following the mouse, and when the mouse button is released, the item is added at the cell under the mouse if possible
once you have the basic logic you can add stacking, items over several cells, non-square items, cross inventory dropping, etc.
in all cases, it's good to learn programming, if you want freedom I advise you to start with that ;)
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Problem with dropping items from my inventory 0 Answers
Can't Assign Item In Array 1 Answer
Text RPG inventory 1 Answer