ADVANCED SWINGING in 9 MINUTES - Unity Tutorial

Поделиться
HTML-код
  • Опубликовано: 19 июн 2024
  • ADVANCED SWINGING in 9 MINUTES - Unity Tutorial
    In this tutorial I'm going to show you everything you need to know to code an advanced (omni-directional) swinging ability in Unity. I'll also show you how to combine this swinging ability with the grappling ability from last tutorial and how to implement proper aim prediction.
    If this tutorial has helped you in any way, I would really appreciate it if you leave a like in return. And you can also subscribe to this channel if you want to see more tutorials like this one.
    Links:
    ➤ DOWNLOAD the SCRIPT: www.mediafire.com/file/oyhc5j...
    ➤ DOWNLOAD the PROJECT (in the free-code-dave channel): / discord
    ➤ DON'T CLICK: bit.ly/2VcrDZt
    ➡️ Get Access to my full MOVEMENT LAB! ➡️
    ➤ Trailer: • MOVEMENT LAB - Unity P...
    🏹 Get Access to my RANGED COMBAT LAB! 🏹
    ➤ Trailer: • RANGED COMBAT LAB - Un...
    Other interesting videos :D
    ➤ THROWING Grenades, Knives and Other Objects - Unity Tutorial): • THROWING Grenades, Kni...
    ➤ FULL 3D ENEMY AI in 6 MINUTES! || Unity Tutorial: • FULL 3D ENEMY AI in 6 ...
    Support me on Patreon:
    ➤ / davegamedevelopment
    #unitymovement #swinging #unitytutorial

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

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

    Hey Dave! Taking my intro to game programming class this semester and your vids are helping out a ton and I love your content! Would love to see the dual grappling hook tutorial, thanks for all you do!

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

    This plus the GDC talk on traversal in Spiderman are extremely well matched to get a good feel for air swinging mechanics!

  • @rare2598
    @rare2598 Год назад +22

    your guides are really good! You explain these mechanics, which are complicated to do, in a very short time, in a very easy way. Please keep making videos like this, I'm sure you'll leave other channels behind one day!

    • @davegamedevelopment
      @davegamedevelopment  Год назад +7

      Thanks so much! Appreciate the feedback! And yes, I'll definitely keep going :D

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

      @@davegamedevelopment wayyyyyyyyyyyyyyyyyy better than the traditional tutorial style. Appealing to both coders and non coders. Even though this is coming from a coder. I see what you're doing and i like it!

    • @Lemon-dh4fz
      @Lemon-dh4fz 4 месяца назад

      @@davegamedevelopment, You definitely stop(
      Love your guides. Return to us pls.

  • @TheGoldenDragonDev
    @TheGoldenDragonDev Год назад +8

    I loved this tutorial. Before, I used your grappling tutorial for my game but swinging was so much more fun, one thing though: I was wondering if you could do a tutorial on vaulting over objects. Thanks

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

    Great Tutorial!😀I'd really like to see the dual hooks!! Thank you so much

  • @la-ki5wd
    @la-ki5wd 4 месяца назад

    your teaching style is really the best

  • @GGPGamesAndy
    @GGPGamesAndy Год назад +2

    Loving these tutorials.
    Couple of requests:
    1. Climbing up onto a ledge from hanging (rather than just sending the player upwards into the air)
    2. Proper vaulting (as seen in Mirror's edge / Dying Light / Assassin's Creed)

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

    Using this tutorial to make an AoT mod for Blade and Sorcery, you're a life saver!

  • @phantomyaay5138
    @phantomyaay5138 Год назад +7

    OMG I love this Keep posting I cant wait for dual hooks

  • @OsrsNooby
    @OsrsNooby Год назад +28

    Hoping you make a tutorial on if you want to grapple / swing from a moving object, since if the object is moving the end of the grapple will stay where the object you hit Was and not stay on the object as it moves.

    • @davegamedevelopment
      @davegamedevelopment  Год назад +14

      Yeah that's actually not too hard to implement, maybe I'll add it as a pinned comment, thanks for the idea!

    • @OsrsNooby
      @OsrsNooby Год назад +9

      @@davegamedevelopment Would love that, I appreciate your tutorials and work you do for the unity community, thank you.

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

    bro thanks so much, you actually made soft soft easy to understand

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

    Love this channel ❤️

  • @NamNguyen-xj4rp
    @NamNguyen-xj4rp Год назад

    Thank you so much for sharing your knowledge for free Thankss

  • @ChromeWisp
    @ChromeWisp Год назад +2

    Hiya Dave, I just found your tutorials and they look great, but I was wondering if you would ever consider making a tutorial about how to handle the new input system, and maybe use that with your previous tutorials the way you've made a video about making your game third-person which was still compatible with your other videos? Would that be at all possible? Either way, thanks for making these great resources!

  • @deadasadodo1016
    @deadasadodo1016 Год назад +4

    Thank you for the tutorials they help a lot

  • @yigitsaglam4875
    @yigitsaglam4875 10 месяцев назад

    Hey man i wondered how did you do your lines shaky. And great tutorial videos man i learned so much. Thanks.

  • @akinpelujoseph9259
    @akinpelujoseph9259 Год назад +4

    Really love this video, lot's of ideas from this video. Hope you do a video on dual grappling hook.

    • @davegamedevelopment
      @davegamedevelopment  Год назад +2

      Thanks a lot! And yes, I'll probably make one about dual hooks :D

  • @1hVibings
    @1hVibings Год назад

    nice tutorials Dave was wondering if you had tips for learning on coding cs like surfing scripts but keep up the great work

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

    OMG i love this channel

  • @user-fv6nc7qi2x
    @user-fv6nc7qi2x Год назад +2

    What a total blessing, chad

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

    video looking like from a new man. Well done!

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

    first of all, just wanna say this, you have amazing tutorials, they are helping me a lot for a game i wanna make
    second of all, am i allowed to use your code shown in this tutorial(and other tutorials on your channel) in my game?

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

    Than you for amazing tutorial! Would you consider making tutorial on gliding?

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

    THANK YOU VERY MUCH!!!!!!!

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

    thanks for the great content

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

    This tutorial is amazing, I want to do a parkour game now.

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

    looks good to me but i want to know if it includes the other movements from previous videos like wall running,climbing,sliding etc.

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

    Nice work keep it up 👍

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

    Would love the double grapple tutorial btw

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

    Great video, thank you very much for it. Can you tell me by any chance where the grid textures are from (not the probuilder ones) cause no one seems to know

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

    This was a very good tutorial but can you maybe make a tutorial about vaulting over objects and manteling

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

    A legende
    Keep up 💜

  • @is_zeroyx
    @is_zeroyx Год назад +3

    U r amazing bro

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

    Cant wait to steal this and make this a main mechanic for my game

  • @Simon-zb2hd
    @Simon-zb2hd Год назад +1

    Get the Bag homie

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

    Hey great video! Do you think you could make a fps controller with the character controller component?

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

    Bro your tutorials are AWESOME. I just started with C# and I understand everything perfectly fine. THANKS

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

    Good Tutorial! Can you make one for melee combat

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

    this video was great i just wish there was a way to make the line renderer rope to be able to detect collisions and make it so that the rope would go through objects while swinging

  • @mamut_chino2419
    @mamut_chino2419 Год назад +3

    Finally

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

    Hi Dave, could you make sliding on rails system, and automatic slopes that you have to time your jump?

  • @DaSoapGoblin
    @DaSoapGoblin 5 месяцев назад

    Hey, Can you show us how to get a crooshair?
    Other than that, I love these vids! They Help SOOO Much

  • @GrandpaSum
    @GrandpaSum 7 месяцев назад +1

    Hello Dave, could you please make a tutorial about Third Person SWINGING? 😍

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

    I WANT MORE!

  • @bakupyro-tf2855
    @bakupyro-tf2855 Год назад

    epic vid bro. But how does one go around making a speed shower in the hud?

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

    hi i was wandering if you could make a tutorial about hp and heath and stuff

  • @Andrea-dw1ps
    @Andrea-dw1ps Год назад

    hey, can you explain in one video how did you manage to improve that fast, more or less what tutorials did you watch, how many hours a day ecc thx for the tutorials

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

    A few things:
    1. How does this not have more likes
    2. This was an amazing tutorial tysm I was also able to make a prediction point for grappling
    3. I would love to see a tutorial on dual swinging
    love this series!

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

      Duplicate The Swinging Gun And Move it to the right/left

  • @b.santiago1687
    @b.santiago1687 8 месяцев назад +1

    Bro is making a spider man game... Awesome

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

    The tutorial helps in understanding that the swing mechanic can be achieved but this is all still confusing after several trails. Maybe another tutorial briefly showing step by step on how to get the job done. I am using a third person controller from "Starter assets from unity". It would be great if the tutorials using the Starter assets to make life easy.

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

    Hello sir.
    Do you have a simple sitting on chair tutorial?Like there will be an arrow on top chair and when you click it you will sit on chair.
    Thank you sir.

  • @hide_ch
    @hide_ch 11 месяцев назад

    I am currently trying to swing with Visual Scripting (Bolt), but I am having trouble because when I Destroy a Joint, the Joint before it was destroyed is reused.
    Should I destroy the entire tip object?
    Should I use the method of generating only the tip multiple times?

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

    Can you make a video about how to change between an grapple hook and a gun

  • @andrewyang7163
    @andrewyang7163 Год назад +2

    Is there a way to disable and enable certain movements for different Levels?
    (Level 1: no swing or dash/ Level 2: add dash)

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

    pls MORE!!!

  • @DavidCayer-fq8tn
    @DavidCayer-fq8tn Год назад

    please make dual swing tutorial plz :)))

  • @famfitic8798
    @famfitic8798 Год назад +2

    hippity, hoppity,
    your code is now my property :)

    • @davegamedevelopment
      @davegamedevelopment  Год назад +2

      Haha no problem, glad I could help :D

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

      @@davegamedevelopment you made my game 10x better, my own player controller script was weird and buggy lol

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

    Dual hooks please! :O

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

    Tou should make rhe camera move down a little and show a particle effect when you land from a high place and make that value increase....

  • @PlaneMusic46294
    @PlaneMusic46294 9 месяцев назад +1

    Hi where is your discord because I my grappling works fine but when I drop it using one of your codes in your previous video it starts to become wonky could you help me please thanks.

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

    Hey dave, can you please mix the PlayerMovementAdvanced script and the PlayerMovementGrapple one please? I would be really thankful since I'm struggling to do that.

  • @stylie473joker5
    @stylie473joker5 Год назад +2

    You are insane

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

    Will this work with a character controller?

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

    can you add a step offset for the playermovement sa you dont get stck on stairs
    thank you!

  • @deraminator945
    @deraminator945 Год назад +2

    Is this the new brackeys? thanks for the hard work 😁

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

    Can you add enemy and guns in the game pls and also consider making the grappling and swinging instead of just appearing out of no where lol but overall great tutorial

  • @yurivandenakker7618
    @yurivandenakker7618 Год назад +2

    Please make a swim system! :)

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

    how can i make the prediction point always the same scale regardless of the distance to camera?

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

    do u use templates? if u dont what do u use to create new project im new to unity and i wanna make a parkour game

  • @Raven-su7bw
    @Raven-su7bw Год назад +1

    Sir any plans on doing one video about swimming or flying controller?

    • @davegamedevelopment
      @davegamedevelopment  Год назад +3

      Yes, I'll probably cover those sometime, but can't tell you when exactly

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

    Please can you do like genchin impact fly system or swiming ?

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

    I followed the code exactly, but for some reason when I use the swing ability my line starts jittering and is not smooth like yours. Any ideas why this would be happening?

  • @hajjex_9086
    @hajjex_9086 Год назад +5

    Can you please quickly explain how you did this wobbly effect?
    I think it's obvious it's not just a straight drawn line 😂😂.
    Thanks alot!
    This tutorial was so fun.
    Also, why do u keep checking
    Hitpoint != Vector3.zero
    What does the "vector3.zero" mean?
    Thanks Brackeys 2.0!

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

      That's what i said on one of his videos lol. Such soothing voice

    • @davegamedevelopment
      @davegamedevelopment  Год назад +5

      I followed along with the tutorial by Affax, it's called something like "How to animate a grappling rope" :D
      And Vector3.zero in this case just means that the raycast didn't hit anything.

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

      @@davegamedevelopment thanks alot 🙏🙏🙏🙏

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

    Make some robot enmyes in the karlson style which you can kill by running into them and make a map

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

    Hi, this can work with third person???

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

    Please tell how to add fps animations

  • @6Abdellah9
    @6Abdellah9 Год назад

    can anyone share the invite link to the discord as the one in the description does not work

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

    can the grappling gun be a separate item like can i also use your drop and pickup system with this

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

    can u replicate with mirror for multiplayer?

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

    I was using ur movement script in The 3d movement video, and The wasd works but The space does not, please help

  • @jonathanmcn997
    @jonathanmcn997 Год назад +4

    You must have been spying on me I started today trying to make this exact thing but it just felt terrible thanks for the help

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

    Reminds me of Dani Tutorial

  • @Dozer1473
    @Dozer1473 2 месяца назад

    is this can using in 2D game too ?

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

    bro plz make a video on 3rd person wallrun cause i tried to make it but my character wont rotate like in first person and neither will the camera :/

  • @Ayush_23456
    @Ayush_23456 8 месяцев назад

    Bro can we give texture on rope?

  • @kurinkishi8861
    @kurinkishi8861 11 месяцев назад

    what is the orientation transform we didnt sign it here

  • @Lemon-dh4fz
    @Lemon-dh4fz 4 месяца назад

    If you come close to the place where the hook is thrown, the character will slow down. The damper interferes with it. And if you turn off the damper, the cable will no longer hold the character. How to fix it?

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

    I have an error in the first movement video, the raycadt doesnt work it doesnt detect if it hits the ground

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

    I downloaded the script from your link for first person, but it still won't jump, I don't know how to fix it. If anybody could help, I would appreciate that.
    can someone pls help?

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

    can you make a third person swinging tutorial?

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

      Well it's kind of the same, if you've seen my third person movement tutorial, just use the combat camera settings and it should work fine :D

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

    every time i try to look up at the spot where i want to swing i get pushed in the ground pls help

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

    I am using your movement script, but am being pulled aside by some force without pressing anything. Is anyone aware of such problems?

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

    When i change my swingspeed value to something high it still stays the same as my walkspeed anyone know why?

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

    If I hold space while swinging I get a juttering effect, is it something to do with my jump?

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

      I added if(swinging) return; to jump and it feels more responsive but I've just noticed that while swinging my camera becomes juttery and if I'm close to an object and let go I start gliding

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

    dual pls

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

    day 2 off asking Dave add a step offset for the playermovement so you dont get stuck on stairs
    thank you!

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

    Can you give me the code to basic swing

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

    i followed tutorial and my swining doesn't work, i just stay put midair

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

    can someone send me the script but without the air controll ?

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

    Can u make this work for third person too?

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

      It already should, if you check out my third person tutorial and use the combat camera mode it should work fine :D

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

      @@davegamedevelopment Can u link the combat camera tutorial. I cant seem to find it.

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

      @@hypercharge26 It's part of the third person movement tutorial on my channel :D