Attempting to create a sort of a harpoon gun in Torque Game Builder.
by Mauver · in Torque Developer Network · 04/02/2009 (8:19 pm) · 0 replies
Hi. I've been having a heck of a time trying to figure out how to get this all to work. I've been working with TGB on this project for a few weeks now and am trying to implement our protagonist's main weapon, a sort of a harpoon gun. I'm not sure how to make this work, but right now I have it set up so that when the mouse is clicked a harpoon spear is shot and on each subsequent frame an additional sort of chain link is put between the player's gun and the spear (or at least how that's planned, I can decide to play with the speed at which links are deployed later). I've been trying to do this by mounting the first chain link to a linkpoint on the blunt end of the spear, but I'm not sure how to make it attach to the gun because you can't mount the same object to two other ones. Right now I'm just trying to get the thing to deploy the spear and a single link to make sure that much works, but I can't even figure out how to do that. How should I be doing this? Particles? Should I even be using mounting? Sorry if this is sort of difficult to understand, I can supply code on demand.