I need a tutorial for a 2d side scroller grappling hook

Hello all!

This is my first project and I figure i would do something simple, so I decided to make a simple platformer. The key element is a grappling hook that should be aimable with the mouse. Is there a detailed tutorial on this? I have so far only found them for 3d games