Game Development Community

Inventory Popup Tutorial

by Tim Newell · in Torque Game Engine · 12/14/2001 (12:54 am) · 4 replies

I just posted a tutorial that adds an inventory popup when you hit "i" and you hit "i" again to hide it. I had to "hack" it by storing all the data in a string then transfering the string to the client and parsing the string on the client. If anyone knows a better way to do this please post it here and I will update the tutorial with it. Currently it only displays weapons with their ammo but it can easily be modified for any inventory items in your game.

Here is a link to what it looks like in game. (with my terrible artwork :) )
Screenshot

Here is the link to the tutorial since it hasn't been approved yet:
www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=1842

If anyone has any better fixes for it and want me to post the changes in the tutorial, post them here.

-Tim aka Spock

#1
12/14/2001 (5:19 pm)
Updated it with a function that i forgot to put in (hasInventory())

-Tim aka Spock
#2
12/14/2001 (5:25 pm)
Thanks :) That is very useful :)
#3
12/11/2006 (7:22 am)
404 Error, Inventory is displaying nothing....ugh, is there any current code/Tutorial on a woking inventory with TGE 1.5 ?

I know this stuff is 5 years old, but there is nothing newer, no ?
/Sigh...
#4
12/11/2006 (7:26 am)
If you are an MMOKIT Owner, use the inventory in the kit, it works well, here's a link to an older pic:

www.garagegames.com/blogs/62635/11304