Can you make a grappler?

is it possible to make a grappler item in a game?(E.G. when going near a ceiling that has an item to grapple to you press a key and hold it to swing on it)

Heres a game by PixelPizza https://flowlab.io/game/play/1444812

There is some many bugs on it though, it’s just so broken