Trying to make a simple keyboard Inventory system [SOLVED]

Started by Stranga, Sat 30/09/2017 04:55:25

Previous topic - Next topic

Stranga

EDIT: Sorry guys, solved it my self. InventoryWindow1.ScrollDown(); Faceplam! But if anyone wants to use this idea go for it!

Hello everyone!

I am making a game the uses full keyboard integration and I have come up with what I though was a simple inventory system.
Here is what it looks like:


Now,to use it you press TAB to bring up the inventory and choose your item with Left and Right keys. To select the item just close the inventory with TAB on the selected item and it will show up on your HUD.

The inventory itself only displays the first (slot or item) in the inventory. How would I be able to cycle through the inventory with just the first slot? I had this idea with the default inventory with the arrow keys if you have more items that can be displayed in the inventory. The reason to do it this way would save me a whole heap of scripting a full integrated inventory.

Thanks everyone in advance!

SMF spam blocked by CleanTalk