How do make a grappling hook like in Batman Return of the Joker (GameBoy - 1991)

Not favoritedFavorited Favorited 0 favourites
  • 3 posts
From the Asset Store
A second gameboy packed assets to help you build an action gameboy looking game
  • I'm looking to make something very similar for my platformer game. The game is meant to be released for IOS but it has a Directional Pad, along with three buttons on screen to be touched for controls, kind of like a GBA Emulator. I don't want to deviate from that and I have a lot invested in this setup.

    I've seen several Grappling Hook or Swinging Vines/Rope examples and tutorials online for Construct 3 (and 2), but most of them rely on the player clicking with their mouse on a location that is preset to accept a grappling hook for the destination of the hook. I want to have it function like in this clip below where the player is pressing buttons and the game is shooting the Grappling Hook up and in front of the player and if it connects to a surface it latches in. I'm not sure how to get this working. I appreciate any input that fits with the setup I'm using.

    LINK TO VIDEO (Reddit) https://www.reddit.com/r/retrogaming/comments/xpb4rl/i_love_having_fun_with_the_grappling_hook_in/

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Fire the grappling hook object as a bullet. On collision with terrain have it stop and set a variable to grapple state and run your grapple events when that state is true.

    Otherwise, destroy with timer and/or destroy outside of layout/viewport to cancel it if no target is hit.

  • Pressing a button to launch a hook and pivoting where it hits an obstacle verses just clicking where to pivot around seems like a minor difference.

    Breaking the problem up into simpler pieces I’d imagine you’re able to see how to launch a hook and see where it hits an obstacle? If not, wouldn’t pressing a button, creating a hook sprite with the bullet behavior from the player, setting the angle of motion up left or up right depending on the direction the player is facing, and finally stopping the hook when it collides with an obstacle work?

    Once you have a hook position you could just use the swing logic from any of the examples you mentioned. I can’t imagine it too hard to just isolate the swinging portion and removing the input method they use.

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)