Game Development Community

Any ideas for making a grappling hook?

by Alaric Karczag · in Game Design and Creative Issues · 07/12/2004 (6:47 pm) · 36 replies

I'm trying to find a way to make a harpoon. I'd like to be able to shoot an item and then drag it behind me.
ie:
fire = shoots out harpoon + rope, it hits object.
hold down button = to drag on item without shortening the rope,
release button = recoils the harpoon or drags item towards player

I've looked through the forums for any code for this...

Help would be great!
Thanks all for your help
Page«First 1 2 Next»
#21
04/20/2007 (7:05 am)
Anyone have any updates on this?

Thanks
#22
04/25/2007 (11:55 am)
I have tryed the fixes above but still get the line going down into the landscape. If I add the fixes to the sorce then that will fix the line but the grappling hook doe not do anything.

Thanks
#23
06/05/2007 (3:21 pm)
Anyone able to do something useful with this yet? Grappling hook? Fishing line?

I'm thinking about installing another fresh copy of TGE just to try this out and see if I can do anything with it, the development seems stagnent... is everyone sitting around waiting for someone else to make this?

If I got it working as desired, how does a $20 "Grapple pack" sound to you guys waiting on the sidelines?
#24
06/05/2007 (4:01 pm)
We can never have too many packs ;) Well thats not stricly true, but packs that implement whole features like this grapple idea of the proposed "cloth pack" by mode7games are very welcome.
Anything that can speed up prototypeing and development is great.
#25
01/11/2008 (8:49 am)
Interesting but sigh... does it still not approved yet?
#26
06/09/2008 (3:14 pm)
Yeah this would be cool for another project I am working on.
#27
07/23/2008 (7:20 pm)
@Ed: Absolutely. Make it reasonably clean, and you've got my twenty bucks in a heartbeat.
#28
09/16/2008 (2:42 pm)
Any updates on this?
#29
09/16/2008 (3:37 pm)
I second this. a grappling hook code pack, id over 60 bucks right now for a clean working code and model (for the gun and hook) maybe more if its not a bare bones code and model.
#30
09/18/2008 (1:57 pm)
Http://www.garagegames.com/mg/forums/result.thread.php?qt=76000
Problems: Haven't had time to figure out a good way to draw the grapple line. Currently the "pull" doesn't feel right, but that's because it's based on gravity and the square of the distance. No model either.

But the physics work great, it's the previously posted example tweaked to allow reeling in and out. I really should make a gameplay video of it.


BTW, if anyone can make a quick hook model, I'm sure everyone would appreciate it.
#31
10/02/2008 (3:08 am)
I've been thinking of trying to apply this to that:

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=3917

Tomorrow or one day very soon I'm going to try to apply the grappling hook ideas from these two threads, and if I can get that working to my satisfaction, see if that laser beam code could be made to work with it, a la Quake 2 grappling hooks :-)

My game is dying for a grappling hook....

ps: and of course I'll let you know how it goes and post anything useful I can offer :-)
#32
10/03/2008 (2:52 pm)
You should make a grappling hook ability to where you can shoot the grappling hook
and it will attract items and tools with an electric magnetic impulse that will allow you
to get needed objects that are in hard to reach areas...
#33
10/04/2008 (5:15 pm)
All you really have to do Deshawn is take the code I posted, integrate it into the movement code of other objects, then reverse the grapple object assignment when the projectile hits.
The amount of force the grapple line exerts on an object when it's outside it's line length will need to be altered, but it needs to happen no matter what usage you have in mind.

Player fires projectile, projectile is recorded on the player object as normal.
Projectile hits an object.
If the object is one that can be pulled in, assign the collided object's grappleID to the player's object ID. Also set the line length to 0, so the object is pulled in towards the player.



You could also do a tractor beam type thing between vehicles using the exact same system.
#34
11/12/2008 (11:45 am)
This is just a quick and dirty idea and I am sure theres lots of other ways to do this.. but this I think is how I would think to do it..


Grapple hook shoots out, and hits object, object is mounted to grapple hooks end, and then can be moved aroudn and brought to the player.

I know that this is just kind of a rough idea, but why not just mount the two objects together wouldnt that be easier?
#35
12/21/2008 (2:44 am)
@Deshawn Brown: You should make a grappling hook ability to where you can shoot the grappling hook and it will attract items and tools with an electric magnetic impulse that will allow you
to get needed objects that are in hard to reach areas...

@everyone else, I got the continuous laser resource working nicely today:

www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=8006

it's a little smoother derivative of the resource I linked to earlier. Works great. I think this is going to work.

I'll be grappling with the grappling hooks tomorrow ;-) I'll keep you posted.
#36
12/30/2008 (10:02 pm)
Well, I've tried to apply both source based grappling resources to no avail. Probably something dumb I'm doing wrong--and that's okay.

I'm having pretty fair success just scripting some impulses on a player wielding the continuous laser, which I think will be satisfactory for my game. Sorry.
Page«First 1 2 Next»