Rpg Inventory gui

Started by
10 comments, last by WoopsASword 8 years, 2 months ago
Does the computer even have to do that for you? I find the ability to place an item in the exact location that I want as very desirable (even if it results in sub-optimal packing, but then it's my problem to find a better solution if the bag is full).
Advertisement

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.

This topic is closed to new replies.

Advertisement