Making a Grapplin Hook in 2D

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Meno

Hello everyone,

So for my next game, i’m trying to make a grappling hook in 2D, something really simple, the player move, he can throw his grapple on specific areas his body is swinging, something really similar to “Grapple Dog” if someone know

I tried a lot of thing, from the dampedspringjoint2D to raycast but i keep having trouble, and tutorials on youtube don’t actually help me…

If someone could help me it would be really nice x-x

Have you looked at this 2D platformer game from GDQuest? It has a character who can use a grappling hook to get around (it would be a good idea to look at the scripts which implement the grappling hook mechanic). Admittedly, this is more advanced, as it also uses state machines. But it’s something which has the code, and has a tutorial to go along with it.

Ertain | 2021-12-27 20:22

Oh, I’ve never heard of this before, it sounds really interesting even if it looks advanced, I’ve never used a state machine before but I might as well try it

Thanks a lot!

Meno | 2021-12-27 22:38