Game Development Community

inventory and swapping armor / items question

by michael bailey · in Torque Game Builder · 03/14/2009 (6:32 am) · 2 replies

i have all the inventory coded in code my problem is putting the arrays to a gui control im not to familiar with the controls on what i should use for a bag etc make each item a button? basically i seen what i want demonstrated in nic blondie's video... im sure he has the code base like i do items in an array attached to the player class in code etc.. like i said my problem is putting this to use to show the items in a bag / equipping them. i can equip an item such as a shield by setting layer over my sprite or under depending on direction.

my second question is on the equipping ... i started messing with the t2dshape3d got it working with my model skins etc is it possible to mount images to the 3d object because using this shape would be so much easier for me. my game is isometric. so i have each animation in 8 directions each attack in 8 directions all on sprite sheets and items i have to do on top of all those animations in adobe to get them to look right.... its alot of work so if i could mount to a 3d object it would be a huge time saver for me.. :/

im using a 60 degree top down angle cam on my models btw

any help is appreciated!

#1
03/14/2009 (11:20 pm)
I'm not so steady on the 3D bits, but you COULD export spritesheets from your 3D program, and no need to fiddle with it in Photoshop or something afterwards. Export all directions at the right view in your 3D program (there was an example for Blender to create sheets), bundle together if it doesn't export all frames as one picture, and repeat for weapon variations.

I'll let somebody else answer about mounting weapons to shapes, as that is something I'd like to know more about.
#2
03/15/2009 (8:28 am)
yea i mean i know how to simulate mounting with 2d sprites. you just set the layer and x y pos on update. but for isometric which is 8 views of EACH animation and 8 views of each piece of armor ... that is a LOT of art