A downloadable project

Download NowName your own price

2D Grappling Hook for Unity — Final Project

The complete Unity project from the tutorial: fire from the weapon, swing between rooftops and release while keeping the momentum you built. Built with Ansimuz's FREE Cyberpunk City 2 pixel art.

▶ Watch the full tutorial: https://www.youtube.com/watch?v=D-mTa22fnqo


What's included

  • Complete Unity 6 project (final version of the tutorial)
  • GrapplingHook2D script, ready to reuse in your own game
  • Player with movement, double jump and animations
  • Endless rooftop course, platforms, camera, parallax backgrounds, HUD and feedback
  • Cyberpunk City 2 pixel art (16-bit style)

Hook features

  • Mouse aiming and first valid solid hit
  • Range limits, trigger/player exclusion, walls that block shots
  • Travelling hook that enables DistanceJoint2D only at impact
  • Cable drawn from the weapon's muzzle to the hook
  • Force-based swing assistance and air steering
  • Momentum-preserving release
  • Cancellation, reattachment and reset

Controls

  • A / D or arrows: move and steer
  • Space: jump, then release and press again for one air jump
  • Mouse: aim
  • Hold left click: launch and stay connected. Release to cancel or detach
  • R: restart

Tip: release an attached hook before jumping.

Note: the cable is a straight visual line with a distance joint. Physical rope segments, corner wrapping and rope retraction are not included.

Perfect for

Platformers, metroidvanias, run-and-gun games and any 2D game that needs fluid swing movement.


Want more art?

The artwork comes from Warped City 2 (free). Download "Cyberpunk City 2 files.zip" from that page.

Love the sci-fi look? Check the full Warped Collection: 1500+ sci-fi and cyberpunk sprites for Godot, Unity, GameMaker and any 2D engine. Browse my store

Related tutorials


License

Free to use in personal and commercial games.

FAQ

Can I use this in a commercial game?
Yes.

Which Unity version does it need?
Unity 6.

Can I use the script in my own project?
Yes. Add GrapplingHook2D to your player and adjust the settings.

Does it work in Godot or GameMaker?
The project is for Unity, but the pixel art works in Godot, Unity, GameMaker, RPG Maker and any 2D engine.


Made by Ansimuz — 15+ years creating 16-bit pixel art for indie developers.
Support my work: patreon.com/ansimuz
Follow @ansimuz on X, Bluesky, Instagram and TikTok.

Updated 18 days ago
Published 24 days ago
StatusReleased
CategoryOther
Authoransimuz
ContentNo generative AI was used

Download

Download NowName your own price

Click download now to get access to the following files:

GrapplingHookProject.zip 3.8 MB

Development log

Comments

Log in with itch.io to leave a comment.

Where are the project files?

Forgot to upload it. Try again. Thanks for the heads up.