Rpg Inventory gui
That is what I want. I don't want player to be able to carry more items. Else I would like to stick with my present inventory system. Thanks for the reply.
Hi,
I need a little idea about rpg inventory gui system. I have an inventory system in my game which works like most 2D browser based mmorpg. Single item occipies single slot. What I want to do is, make it more like diablo inventory system. Different items occupies different slot(s). I need some idea how to approach? I only need to know how do I detect the slot size of an item over inventory slots. My inventory right now is more like the left one, I want to convert it to right one (Diablo).http://pasteboard.co/1cfK491f.jpg
Thanks in advance
You add a width and height size attributes to your item.
For every item you move, you calculate the location of your item by setting a starting position and going with your height and width. (usually top left corner).
You don't even need to save a matrix in your memory, just a list of your items.
The calculations should be easy since it's just a matrix.