Inventory [SOLVED]

Started by gamemaka, Tue 12/04/2005 03:53:57

Previous topic - Next topic

gamemaka

My GUI is making me MAD! I'm trying to make inventory appear, but I can't! I draw stupid little inventory boxes, and then when I pick up something, it doesn't appear in the box! WTF! I think I'm doing something wrong. I checked the manual, and it was very vague on inventory. So... PLEASE! I NEED HELP!
"Can I have a look at Uranus, too, Lavender?" - Ron Weasley, Harry Potter and the Goblet of Fire.

strazer

The default size for inventory item slots it 40x22 pixels. If your inventory control is smaller than that, the inventory items won't display.
So either resize the inventory control or change the size of the slots using the SetInvDimensions function in the game_start function.

.

So you are making every item seprete box?
Well maybe you should do one big one the items will be displayd quite good

stuh505

Ah, haha...it appears Kristjan has found your problem...

Cach "inventory" object you place on the GUI represents a container that holds a collection of items...rather than a slot to hold an individual item.

So, it sounds very likely that you made a bunch of boxes, all of which are slightly too small to display an item, and so they display nothing.

It is adviseable that you only use 1 inventory object to keep things simple because otherwise you will need to use more complicated scripting to manage inventory content manually.

gamemaka

Wow. I'm so stupid. I thought you draw little boxes for ONE item. Jeez. I'm in need for some serious help. And I want to be a video game designer...
"Can I have a look at Uranus, too, Lavender?" - Ron Weasley, Harry Potter and the Goblet of Fire.

SMF spam blocked by CleanTalk