GRENADE / BOMB in Unity (Tutorial)

Поділитися
Вставка
  • Опубліковано 29 січ 2025

КОМЕНТАРІ • 746

  • @marktaro
    @marktaro 3 роки тому +70

    The more into Unity I get, the more I realize how good of a teacher you were in these videos.

    • @troyna77
      @troyna77 2 роки тому +2

      I think Brackeys should have named a successor or at least a rotating guest every month.

  • @d-wizzel4217
    @d-wizzel4217 7 років тому +466

    You're too good for us man. Never stop what you're doing.

    • @Maskeowl
      @Maskeowl 5 років тому +1

      D-Wizzel hello dude I have a problem in my explosion effects need help now that the problem. flare de ole in his previous videos how to handle it

    • @garrytalaroc
      @garrytalaroc 4 роки тому +3

      Yeahh. Very helpful man.

    • @RohitKashyap-tg3gz
      @RohitKashyap-tg3gz 4 роки тому +5

      Suprabhat

    • @d-wizzel4217
      @d-wizzel4217 4 роки тому +14

      @HylianLoser Yeah, it's crazy. I've been watching the man since High School. Wish him well.

    • @PlinaZ
      @PlinaZ 4 роки тому +26

      oof

  • @TheProProgrammer
    @TheProProgrammer 7 років тому +159

    The Best Game - Programming Tutor On UA-cam

    • @Maskeowl
      @Maskeowl 5 років тому

      The Pro Programmer hello dude I have a problem in my explosion effects need help now that the problem. flare de ole in his previous videos how to handle it

    • @R_Samnan
      @R_Samnan 4 роки тому

      @@positive2897 lol he only made two videos

    • @RT-.
      @RT-. 4 роки тому +1

      for unity*

    • @newbiegeek8407
      @newbiegeek8407 4 роки тому +1

      He’s not the best unity tutor in UA-cam. he’s the best in the world

  • @drix8113
    @drix8113 7 років тому +506

    grenade model lmao
    It’s 10/10 for me.

    • @samuelknox6145
      @samuelknox6145 6 років тому

      Dyn _ i

    • @Maskeowl
      @Maskeowl 5 років тому

      drix hello dude I have a problem in my explosion effects need help now that the problem. flare de ole in his previous videos how to handle it

    • @Maskeowl
      @Maskeowl 5 років тому

      Lord Maximus Farquaad hello dude I have a problem in my explosion effects need help now that the problem. flare de ole in his previous videos how to handle it

    • @Maskeowl
      @Maskeowl 5 років тому

      Lord Maximus Farquaad I do not know my friend, but I know a lot of people wrote the same problem, and I have solved this problem, so please do not dorun me already have written the extra code, but I wondered whether it can be solved in a natural way

    • @Maskeowl
      @Maskeowl 5 років тому

      Lord Maximus Farquaad dude, you've got a lot of misunderstanding aaol problem I've solved more explanatory if my problem prticle anim in the end to play again after the bomb exploded so the anim was playing again and again did not stop after the end

  • @atorover2169
    @atorover2169 3 роки тому +4

    Not only did you show us how to make a grenade, you showed the steps and went above and beyond. We will miss you!

  • @rileyisfree
    @rileyisfree 4 роки тому +8

    I know you'd stopped updating this channel just before I found you, but I still want to thank you for so many great tutorials. They really help a lot.

  • @brokenstudiotv
    @brokenstudiotv 7 років тому +12

    Oh my God, I haven't watched your tutorials in a long time and this one was just at such a high quality! Not only that, it was fun to watch, very understandable and incredibly informative. You have no idea how much I appreciate these videos, thank you so much!

  • @aneesaziz3611
    @aneesaziz3611 6 років тому +9

    For stopping the looping of grenade go to the prefab of big explosion and uncheck looping. Also Set stop action to destroy.

    • @sumitdebbarma1209
      @sumitdebbarma1209 Рік тому +1

      Hi brother thanks you very much many many many thanks to you i was scratching my head on why particles effect is not getting destroyed on my hierarchy but after i saw your comments it solved my issues, Thanks a lot......... Brother. T...H...A...N...K...Y...O...U....!

    • @auraa8015
      @auraa8015 2 місяці тому +2

      it doesnt stop bro

  • @SDSMint
    @SDSMint 7 років тому +75

    3:00 Sex with me in a nutshell

  • @zbyszekkiebasa906
    @zbyszekkiebasa906 5 років тому +19

    if your "BigExplosionEffect" is repeating continuously on it's own. Just turn off the looping on it inside the prefab.

    • @Jaakob137
      @Jaakob137 2 роки тому

      Thanks! That is what i need

    • @TetrisKid48
      @TetrisKid48 2 роки тому +1

      it's still looping just not the one part of it?

    • @TetrisKid48
      @TetrisKid48 2 роки тому +1

      you have to disable looping on every part of the prefab!

    • @rainingmoon8310
      @rainingmoon8310 2 роки тому

      how?

    • @Jaakob137
      @Jaakob137 2 роки тому

      @@rainingmoon8310 in the prefab folder

  • @tobario
    @tobario 2 роки тому

    He had the best tutorials just by keeping the complexity down to a minimum. Other UA-camrs can still learn from this.

  • @JadenAccord
    @JadenAccord 7 років тому

    It's awesome to see how much better you've gotten. It think I started watching you like 5 years ago and you changed a lot

  • @codinginflow
    @codinginflow 3 роки тому +17

    Damn these explosion effects look super cool

  • @lyvenn
    @lyvenn 4 роки тому +2

    I looked all over UA-cam for how to do this, including using SphereCast, and you give me a perfect way to do this. You earned yourself a subscription and like!

  • @aerop6395
    @aerop6395 7 років тому +38

    Thank you brackeys I have been trying to find a decent grenade tutorial!

  • @Maggiethegsd
    @Maggiethegsd 4 роки тому

    Dude, this channel is gold. Simple and straight out of the box, no time wasting whatsoever, I LOVE THIS CHANNEL

  • @gs4207
    @gs4207 5 років тому +1

    I'm sad because he only makes one video a week. His videos are the best unity tutorials in the entire youtube .

  • @anzu8698
    @anzu8698 7 років тому +1

    Definitly the best Unity channel in youtube! Thanks for everything!

  • @Mrjononotbono
    @Mrjononotbono 4 роки тому +1

    You're a legend man. Please reconsider coming back to your channel!

  • @gyrotwist6335
    @gyrotwist6335 4 роки тому

    You are a great person, you don’t only just tell us how to do something, you also tell us why we have to do it to make it work and how it can be used in the future. Thank you

  • @amees89
    @amees89 3 роки тому +8

    "If we then save this and go into Unity" - Brackeys in every Turtorial

  • @ChamuthChamandana
    @ChamuthChamandana 7 років тому +1

    Best Unity Tutorials I've ever found on UA-cam

  • @chetmcgovern9985
    @chetmcgovern9985 6 років тому

    Brackeys is the best channel I've found for learning all this Unity stuff.

  • @dejansavanovic4476
    @dejansavanovic4476 2 роки тому +1

    This is one of best tutorials for Unity

  • @nielshenriksen1043
    @nielshenriksen1043 6 років тому +1

    I love your small videos. They give so many ideas and its easy to take the part and use it in own project.

  • @k-smith
    @k-smith 7 років тому +1

    I am in awe. You never fail to teach me something new. Very much appreciated. Keep it up!

  • @trailbreaker_yt7022
    @trailbreaker_yt7022 2 роки тому +3

    I miss him making tutorials.

  • @MichaelLevAstro
    @MichaelLevAstro 7 років тому

    QUICKER WAY TO WRITE THE EXPLOSION METHOD WITH C#6 (.NET 4.6):
    Destroy objects:
    nearbyObject.GetComponent()?.Destroy();
    Add force:
    GetComponent()?.AddExplosionForce(force, transform.position, radius);
    What is the "?" you ask?
    Its a null propagating operator.
    If the object on the left is null, it will not propagate right and thus no null reference exceptions.
    Love your stuff dude, keep up the great work!

    • @MichaelLevAstro
      @MichaelLevAstro 7 років тому

      Oops missed something
      GetComponent()?.AddExplosionForce(force, transform.position, radius);
      |
      \/
      nearbyObject.GetComponent()?.AddExplosionForce(force, transform.position, radius);

  • @RobFearn
    @RobFearn 7 років тому

    Awesome job - your videos are so concise and even when they're not related specifically to what I'm interested in I learn something new/useful - big thanks!!

  • @Scarletraven87
    @Scarletraven87 7 років тому +26

    "I rate this video one hundred thousand out of ten!"
    - MrTorgue

  • @gauravkondhare3605
    @gauravkondhare3605 7 років тому +2

    Hey Brackeys, I've learnt so much from you. No other tutorial series is as easy and informative as yours. Thank you so much mate! :)

  • @bahaatamer1245
    @bahaatamer1245 7 років тому

    You are slowly pulling me back into trying to understand and learn coding for game development... Just let me finish my final exams and I will be back to work! :D

  • @behrzillaproductions
    @behrzillaproductions 7 років тому

    lol the "please dont make fun of it" made me laugh so much XD

  • @DarthJeremy364
    @DarthJeremy364 3 роки тому

    brackeys you are a martyr bless your soul.

  • @meltpack8876
    @meltpack8876 7 років тому

    I LITERALLY WAS GOING TOO GOOGLE HOW TO DO THIS UR AN ABSOLUTE LEGEND

  • @Ubayla
    @Ubayla 7 років тому

    "I've made a very simple grenade model in Blender - please don't make fun of it."
    Dude, bro, man, mi amigo, I love you.

  • @javieroldan
    @javieroldan 7 років тому

    Great tutorial! You make seem simple the most complex tasks. Congrats!

  • @azuraii5238
    @azuraii5238 6 років тому +3

    You probably want to use raycasting for Grenades instead of finding game objects inside of a radius. Raycasting doesn’t destroy objects that might be hiding behind walls like the does.

  • @edpims4258
    @edpims4258 3 роки тому +1

    he really is an amazing teacher

  • @lethn2929
    @lethn2929 7 років тому +2

    Thanks Brackey's, I was pondering about how to do chain reactions and so on with a grenade like what you'd get in Halo: Combat Evolved didn't know physics.overlapsphere could be used in this way!

  • @oppressorMK1
    @oppressorMK1 7 років тому

    This video was a blast to watch

  • @nabilbg4882
    @nabilbg4882 7 років тому +1

    The best unity channel in the youtube :-)
    Thank you .

  • @hritik16
    @hritik16 7 років тому

    The most efficient tutorials!!!

  • @ccextremegamer4407
    @ccextremegamer4407 7 років тому

    This is awesome gonna try it out might try it as a trial in the fps im making with my team your awesome brackeys thanks for the awesome tutorials thinking about donating but got to work it into the budget

  • @beefedits5235
    @beefedits5235 4 роки тому +18

    I spent hours making my own "explosion force" force, came here, after mostly failing not realizing there was a built in function for it...

  • @wafike1
    @wafike1 6 років тому

    To stop the looping if the explosion go to :
    Prefab and select BigExplosiinEffect then uncheck Looping from the inspector window and disable Stop Action

  • @UnMeilleurMonde
    @UnMeilleurMonde 4 роки тому

    Are you/Have you been a teacher ? You really have a talent for explaining things, that was really instructive and pleasant to watch

  • @spectrest
    @spectrest 6 років тому

    This is such a great tutorial i love it, i did run into a problem tho. i love explosions so i started spaming these everywhere to see my hard work in action, problem is it kills your cpu eventually from all the instatiated and destroyed objects. Looking into it I found out about object pooling and if you've run into this problem check it out for your self its really easy to do. Thank you again Brackeys for all your amazing videos, keep up the good work!

  • @rachapongwatana3868
    @rachapongwatana3868 2 роки тому

    Thank you so much for really cool tutorials for the grenade, I really loved thing explosion. :)

  • @justinc2633
    @justinc2633 5 років тому

    this is nice but unless i missed it your force isnt affected by the inverse square law, all the forces are the same as long as its within your radius which means something right beside the bomb will have the same force applied as something right on the border.

  • @GinsuGames
    @GinsuGames 7 років тому +4

    FOR everyone having the effect loop infinately. Make sure you open the particle editor and uncheck looping for each component there is like 5.

  • @VRwithAndrew
    @VRwithAndrew 7 років тому +2

    Amazing as always!

  • @TheAgent474747
    @TheAgent474747 7 років тому

    You have a special ability for teaching, thank you Brackeys:)

  • @paraje3d
    @paraje3d 11 місяців тому +1

    Me: How to make a bomb?
    Google: 🤔?
    Me: For Unity 3D.
    Google: Ohhhhh it's ok 👍.

  • @gkaruk
    @gkaruk 7 років тому

    Excellent video, well articulated and well presented. Subscribed!

  • @mrrffish
    @mrrffish 6 років тому +1

    Thank you for all of your hard work. These videos have been such a huge help. Also, it has to be said: You have really pretty eyes, and just the greatest smile!

  • @furkankocak3142
    @furkankocak3142 3 роки тому

    If you are having trouble with despite having the bool check, explosion effect still continues, uncheck all the parent and child particle effects' loop property in the explosion prefab.

    • @gabolbasqan
      @gabolbasqan 3 роки тому

      selam abi türksün herhalde loop u kapatmama rağmen parçacık efektleri devam ediyor büyük ateş effecti değil etrafa saçılan taş duman gibi effectler devam ediyor nasıl düzeltirim

    • @furkankocak3142
      @furkankocak3142 3 роки тому

      @@gabolbasqan Explosion effect in model prefab i, bahsettigin tas toprak duman vs diger baska particle effectleri child olarak tutuyor. O childlarin da looplari açık, hepsini kapatman gerek

    • @gabolbasqan
      @gabolbasqan 3 роки тому +1

      @@furkankocak3142 abi yardımın için çok sağol oldu

  • @lle60626
    @lle60626 7 років тому +1

    @brackeys you're the man! Thanks for everything, keep it up.

  • @leafamphii.
    @leafamphii. 5 років тому +2

    WOA I GOT A CODE MONKEY UNITY TUTORIAL AD THINGY ON A UNITY TUTORIAL VIDEO

  • @phicatotechnology9326
    @phicatotechnology9326 7 років тому +3

    I would press Like button for hundreds of time if i could :) You're a great Unity teacher! Thank you

  • @bluelightdigitalarts1934
    @bluelightdigitalarts1934 5 років тому +3

    Best Unity Tutor on earth although my grenade blows up too quickly

  • @aziiz_farhat
    @aziiz_farhat 7 років тому +1

    Thank you Brackeys, I was inspired to use a part of explosion script in Flipper Bumper to repulse the ball :D
    Thank you

  • @DiegoOliveiraProf
    @DiegoOliveiraProf 5 років тому

    here I am again reviewing your videos :)

  • @necrothaft1s
    @necrothaft1s 7 років тому

    you're awesome bro even tho i stopped developing in unity3d i still love it and i love you're videos as well .
    i wish i get the opportunity to work again in unity3d :D

  • @perelium-x
    @perelium-x 4 роки тому +1

    U are the best there is.........................God Bless U Man. Much Love

  • @ELMlKO
    @ELMlKO 7 років тому

    From Morocco 🇲🇦 You’re the best

  • @teqanitv-9950
    @teqanitv-9950 7 років тому +3

    you make me love making games

  • @smartgamers1539
    @smartgamers1539 4 роки тому

    Nice and Excellent Game Developer and Tutor

  • @AsasinoManik
    @AsasinoManik 5 років тому

    Thanks, thank you so much and lots of love from India.

  • @ralphskl8693
    @ralphskl8693 7 років тому

    your videos are such great quality. thank you so much!

  • @osmantoplica8912
    @osmantoplica8912 7 років тому +2

    I never thought that I'd ever love a man.

  • @zombietron666
    @zombietron666 6 років тому

    Thanks Brackeys, you're awesome!

  • @VgFilms_Gaming
    @VgFilms_Gaming 6 років тому

    Your videos are amazing man!!!

  • @Killer_Nads
    @Killer_Nads 7 років тому

    superb tutorial, subscribed!

  • @arsifali
    @arsifali 7 років тому

    AWESOME VIDEO MAN! YOU EXPLAIN AS EASY AS HELL!

  • @chazgw7676
    @chazgw7676 3 роки тому +31

    My grenade's particle effect isn't ending, and the looping is off in the inspector. Any ideas?
    EDIT - I figured it out. Any of the Explosion effects in the "Fire & Explosion Effects" might have sub objects in the Hierarchy, which you can see at runtime, or in the hierarchy of the prefab, but not in the Inspector. In Unity Particle Pack 1.6, some of them, like BigExplosion, have 7 entire subobjects that have their looping enable by default. Once I turned them all off, boom - no more boom.

    • @zeganazying5970
      @zeganazying5970 2 роки тому

      bro it's don't work

    • @SpiritRaps
      @SpiritRaps 2 роки тому +3

      @@zeganazying5970 you have to inspect the prefab and turn off looping for each GameObject

    • @jayren6937
      @jayren6937 2 роки тому +3

      Worked perfectly, thanks!!!!!!

    • @oblivius5538
      @oblivius5538 2 роки тому +3

      it work. thank you man u just need to open it on prefabs double click it and there are like 8 particle effects that you need to stop looping.

  • @Замшелыйбулыжник-д8с

    Thank you so much, just the best

  • @ryangowen2816
    @ryangowen2816 5 років тому +3

    10:14 - why not just modify the dest.Destroy() script to Instantiate() the broken pieces inheriting the velocity of the original object (with a tiny bit of randomness to make the pieces fly off in directions)?

  • @N0biKn0bi
    @N0biKn0bi 7 років тому

    Wow, what a great tutorial!

  • @paturuzu4705
    @paturuzu4705 6 років тому

    Hola Brackeys te felicito por todos los tutoriales que haces ,realmente es muy buena la politica de unity para incentivar a los usuarios de este gran motor grafico , saludos y segui asi , gracias

  • @sinner1263
    @sinner1263 4 роки тому

    This is simple and very helpful tutorial

  • @ziad_vfx
    @ziad_vfx 4 роки тому

    Thanks you helped me a lot 😍😍♥️🌹

  • @StigDesign
    @StigDesign 7 років тому

    Now this was awsome and well explaned :D

  • @바다호수
    @바다호수 6 років тому

    what a perfect tut video for beginners. Thanks!!

  • @miomirnikolic8882
    @miomirnikolic8882 7 років тому

    Great job...Thanks for very good tutorials....respect!

  • @MicMan2710
    @MicMan2710 5 років тому

    Very helpful, as usual. Thanks

  • @RDD87z
    @RDD87z 3 роки тому

    thank you for sharing your knowledge in such a good way dude, !

  • @DeepfriedChips
    @DeepfriedChips 4 роки тому

    Welp you didn’t make chain trigger code but i can do it myself, for anyone interested a way you could do it is with a check for component if it has that component call the trigger public void and in the trigger public void is the same thing as the void explode in the grenade basically create 2 prefabs, lit grenade and grenade one with the ChainTrigger script and one with the grenade script

  • @arjunmehta2853
    @arjunmehta2853 7 років тому

    Thanks for this cool tutorial!!

  • @paquitocalicdan
    @paquitocalicdan Рік тому +3

    To stop the looping if the explosion go to :
    Prefab and select BigExplosiinEffect then uncheck Looping from the inspector window and select destroy in Stop Action (Took me 2 hours to know) and do the same to the rest (Click the Open Editor in Particle System to so others effect(theres many of them, not just the BigExplosionEffect))

  • @codinginflow
    @codinginflow 3 роки тому +7

    What about using Invoke in Start instead of managing the countdown in Update?

    • @flydrop8822
      @flydrop8822 3 роки тому +1

      it works, but then if you want to arm it in a specific moment after the game starts you wont be able to, i guess best would be to call the explode function from another script (whatever you want to use to trigger the explosion) with a invoke or start coroutine (start coroutine is a fancier invoke)

  • @shivamprajapati172
    @shivamprajapati172 6 років тому

    You are very good teacher.
    Thxs for this

  • @octe-es
    @octe-es 7 років тому

    Wow, it's a very useful video. Thanks

  • @mohahmd2775
    @mohahmd2775 7 років тому +1

    It's. Awesome dude keep going 💪

  • @TheAbeinG
    @TheAbeinG 5 років тому

    Great tut man!!

  • @郭丹尼-f1s
    @郭丹尼-f1s 7 років тому

    Thanks!
    This video is helping me a lot😁😁😁

  • @yellowdino6046
    @yellowdino6046 4 роки тому

    Thank you it worked for me!

  • @kuderedev9108
    @kuderedev9108 7 років тому

    Nice tutorial, thank you so much.

  • @armagedus
    @armagedus 7 років тому

    Okay. That was super helpful. Thank you very much! :D

  • @Keolamation
    @Keolamation 6 років тому

    Lol, I know this is kinda pointless to share but, it's intriguing to mysellf: it's funny when you know nothing about code you replay segments a lot. but, when you get really good at it you start watching these type videos, in your mind you go "blah blah blah" *fast forward* hhh I'm just here for the leaning particles!! and then you pause and go "ahhhhhhh. I'm not the only one watching this..." lololololol