Build a 2D Top Down GRAPPLE HOOK in Unity

Поделиться
HTML-код
  • Опубликовано: 29 дек 2024

Комментарии • 39

  • @vvdkvn
    @vvdkvn 2 года назад +5

    This video is great and straight forward but I have one issue, whenever I grapple on to my object the line keeps on clinging on to it and you have to stop and replay the game to make it stop, is there any solution?

  • @ИлонМаск-р9у
    @ИлонМаск-р9у Год назад +1

    please tell me I'm pulling the wrong way with the mouse on the rules always in the center at zero coordinates (what's the problem?

  • @ijustwanttomakegames
    @ijustwanttomakegames 3 месяца назад

    Great tutorial, but I have some errors.
    I want to stop the travel hen mousbutton up, and I know that one. but
    There's some kind of bug, that makes my game all wobbly (i tried it again, it gets wobbly even if I go through with a grapple like there's some collider error somewhere. and also.
    the first shot is correct, but after som time, if I click on a plattform to the right, the rope shoots to the left. how come?

  • @jeffjoe1681
    @jeffjoe1681 2 года назад +1

    How do you make the object being pulled towards the player, instead of the player being pulled towards the object, I want to pull something with the grappling hook

  • @GoldEyeGuy
    @GoldEyeGuy 2 года назад +1

    Is it possible to turn it into a chain that when shot would pull the enemy towards you cause I’m starting out and no other tutorial is doing that. Great video by the way really help with a different project of mine

  • @pablovillegas2898
    @pablovillegas2898 Год назад

    Great Video but i have a question,, What should I change or place if I want to attract objects towards the player instead of the player going towards them?, like the hook in zelda alttpast?

  • @baxi8042
    @baxi8042 3 года назад +2

    I Like it That you make Videos again

    • @MuddyWolf
      @MuddyWolf  3 года назад

      I'm happy to hear that Baxi!! :D

  • @berketolunguc9789
    @berketolunguc9789 Год назад

    First of all great video thank you. I noticed your code completes automatically by VScode which plugin did you do this with

  • @katrinarose2210
    @katrinarose2210 Год назад

    So, my question is, do I need the line renderer if I don't want to render a basic line? Like if I want to create a rope texture, does that make the line renderer useless to me, do I only need the raycast and vertices information? And if so, how do I apply my texture to this information? Is it possible to make a material with my texture and apply it to the line renderer if I do still need it?

  • @MaHyxa
    @MaHyxa 2 года назад

    Please advice where to put minimum distance check and how to make a cooldown on hook. And also is there any possibilities to draw the line after shooting even if it's not hit anything?

  • @mustafaonly1127
    @mustafaonly1127 3 года назад +2

    I have a game and I've created everything from background, character, animations but the problem is how to cycle between animations they are (Idle, jump, run, attack 1, attack 2, attack 3, dash, grab, wall slide, double jump) I stuck with if statements and can't continue

    • @MuddyWolf
      @MuddyWolf  3 года назад

      That's the one thing I'm not great at however, I want to learn so I'll try to create a video on it when I know more :)

    • @mustafaonly1127
      @mustafaonly1127 3 года назад

      @@MuddyWolf thanks

    • @denzelallen4644
      @denzelallen4644 2 года назад

      I may be too late, but here's a playlist that shows how to create a game from scratch, and the second video is about animations, hope it helps you.
      ruclips.net/p/PLgOEwFbvGm5o8hayFB6skAfa8Z-mw4dPV

  • @whyamihere555
    @whyamihere555 Год назад +1

    How could I make it so you can have multiple grapples active at a time?
    Just removing the " && !isGrappling" ALMOST works, *but* it just moves the existing line mid-retract instead of generating a new one.

    • @MuddyWolf
      @MuddyWolf  Год назад

      You would need to loop through each grapple hook, so each time you click to grapple it would shoot a new grapple, depending on how many grapples you want you could set a limit and then if you click again remove the first grapple in your array and shoot another in its place.

  • @kaiye7023
    @kaiye7023 2 года назад +1

    I love top down game!

    • @MuddyWolf
      @MuddyWolf  2 года назад

      Then you'll love my new video releasing in an hour :)

  • @baciumarius242
    @baciumarius242 2 года назад

    What should i change in order to have the grapple to not spawn from the center of the character but to a point that i want ? Or does that have something to do with the line renderer ?

    • @WishesRL
      @WishesRL 2 года назад

      more than likely you will have to make a vector2 with the transform position but also add whatever dimensions you need to it to be able to be in the right spot so something kind of like "Vector2 shotPlacement = new Vector2(transform.position.x - or + *insert position correction number for the X value*, transform.position.y - or + *insert position correction number for the Y value*)
      So let's say you wanna move it to the right 4 units and down 2 it would be:
      Vector2 shotPlacement = new Vector2(transform.position.x + 4.0f, transform.position.y - 2.0f)
      and so instead of writing transform.position you would write "shotPlacement" instead

    • @baciumarius242
      @baciumarius242 2 года назад

      Thanks man, it worked great :D

    • @WishesRL
      @WishesRL 2 года назад

      @@baciumarius242 good to hear!

  • @hayqueen9902
    @hayqueen9902 3 года назад

    Can u change to (2d transform): player connect line to 1 object. and player fly to object position. If long, please guide me in next video. Thank u so much.

    • @MuddyWolf
      @MuddyWolf  3 года назад

      Hey I'm not sure what you're asking. My player already connects to an object and move the player to the objects position? Or are you after something else?

  • @SantaGamerYoutube
    @SantaGamerYoutube 2 года назад +1

    Great vid, thanks alot!

    • @MuddyWolf
      @MuddyWolf  2 года назад +1

      Glad you liked it!

  • @BadAngel7
    @BadAngel7 3 года назад

    This video is great and works almost perfectly for what am trying to create, I do have one question however. Is it possible to change the speed at which the hook comes out based on distance? At the current settings it comes out at a set speed which is fine for longer distances, but up close is very sluggish. Great video still!

    • @MuddyWolf
      @MuddyWolf  3 года назад

      Good question, I believe its possible but I'd have to do some testing. When I get a chance I'll try create a tutorial for it.

    • @ragingdio9471
      @ragingdio9471 Год назад

      @@MuddyWolf Hey man! have you had time to look into the speed of the hook based on distance? This has been really helpful!

  • @Blaxe75
    @Blaxe75 Год назад +1

    8:55 to 9:00 wtf was that noise

    • @MuddyWolf
      @MuddyWolf  Год назад

      Sounds like mic static, I probably knocked my mics wire when recording and missed it in the edit 😅

  • @ghostboi08
    @ghostboi08 3 года назад +1

    First, ping me if you pro muddy wolf :)
    PS. I’m first like too

    • @MuddyWolf
      @MuddyWolf  3 года назад

      FASTEST BOIII AROUND!!!!!! SPEEEED

  • @eggseatpegs
    @eggseatpegs 3 года назад +2

    Third!

    • @MuddyWolf
      @MuddyWolf  3 года назад +1

      BRONZE MEDAL FOR YOU!!!!

  • @mustafaonly1127
    @mustafaonly1127 3 года назад +2

    Second

    • @MuddyWolf
      @MuddyWolf  3 года назад

      SHOW ME DA SPEEEEED!!!

    • @mustafaonly1127
      @mustafaonly1127 3 года назад +1

      @@MuddyWolf So I got the sliver medal. Not bad not bad