Game Development Community

How to make drag and drop skills?

by Jason Lee · in Torque Game Builder · 03/27/2007 (8:51 pm) · 6 replies

Basically I want to know how to create a drag and drop of skills interface. Something similar to Guildwars. Any ideas?

#1
03/28/2007 (9:48 am)
@Jason, wanna be a bit more specific, for those of us who don't know how Guildwars does it?
#2
03/28/2007 (4:22 pm)
Gah sorry... There's a skills dialog or window, with a list of the available skills that you drag to a skills bar to use. It then loads the bar with the skills you have drug onto it.

I'm planning on using a similar system with neophagia, but different (of course). But the way one would load skills is very alike.

beautifulpeoplesclub.net/phpBB/download.php?id=60
#3
03/28/2007 (7:45 pm)
@Jason, this could be accomplished with a GuiDragAndDropControl most likely -- though, depending on how your implemented it, It could also be done with OnMouseDown, onMouseMove and onMouseUp and some t2dSceneObjects (Static Sprite, Animated Sprite, whatever) ...
#4
03/30/2007 (2:09 pm)
So your saying i need to code a GuiDragandDrop control basically? Which is what i figured... If a player clicks on a skil i want them to be able to drop them into a slot.
#5
03/30/2007 (2:11 pm)
I also just realized i put this in the wrong thread too.. ack! it's for tge, sorry about that.
#6
03/30/2007 (2:23 pm)
I would agree that your best bet is using TGB objects (such as text object and static/animated sprites). Coding a drag and drop control in TGB scripting should be fairly trivial too :)