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
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
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
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
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!
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....!
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!
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
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!
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!!
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
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.
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!
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
To stop the looping if the explosion go to : Prefab and select BigExplosiinEffect then uncheck Looping from the inspector window and disable Stop Action
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!
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.
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!
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.
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
@@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
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
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.
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)?
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
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
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))
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)
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
The more into Unity I get, the more I realize how good of a teacher you were in these videos.
I think Brackeys should have named a successor or at least a rotating guest every month.
You're too good for us man. Never stop what you're doing.
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
Yeahh. Very helpful man.
Suprabhat
@HylianLoser Yeah, it's crazy. I've been watching the man since High School. Wish him well.
oof
The Best Game - Programming Tutor On UA-cam
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
@@positive2897 lol he only made two videos
for unity*
He’s not the best unity tutor in UA-cam. he’s the best in the world
grenade model lmao
It’s 10/10 for me.
Dyn _ i
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
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
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
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
Not only did you show us how to make a grenade, you showed the steps and went above and beyond. We will miss you!
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.
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!
For stopping the looping of grenade go to the prefab of big explosion and uncheck looping. Also Set stop action to destroy.
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....!
it doesnt stop bro
3:00 Sex with me in a nutshell
Thank you.
if your "BigExplosionEffect" is repeating continuously on it's own. Just turn off the looping on it inside the prefab.
Thanks! That is what i need
it's still looping just not the one part of it?
you have to disable looping on every part of the prefab!
how?
@@rainingmoon8310 in the prefab folder
He had the best tutorials just by keeping the complexity down to a minimum. Other UA-camrs can still learn from this.
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
Damn these explosion effects look super cool
Yea
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!
Thank you brackeys I have been trying to find a decent grenade tutorial!
Dude, this channel is gold. Simple and straight out of the box, no time wasting whatsoever, I LOVE THIS CHANNEL
I'm sad because he only makes one video a week. His videos are the best unity tutorials in the entire youtube .
Definitly the best Unity channel in youtube! Thanks for everything!
You're a legend man. Please reconsider coming back to your channel!
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
"If we then save this and go into Unity" - Brackeys in every Turtorial
Best Unity Tutorials I've ever found on UA-cam
Brackeys is the best channel I've found for learning all this Unity stuff.
This is one of best tutorials for Unity
I love your small videos. They give so many ideas and its easy to take the part and use it in own project.
I am in awe. You never fail to teach me something new. Very much appreciated. Keep it up!
I miss him making tutorials.
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!
Oops missed something
GetComponent()?.AddExplosionForce(force, transform.position, radius);
|
\/
nearbyObject.GetComponent()?.AddExplosionForce(force, transform.position, radius);
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!!
"I rate this video one hundred thousand out of ten!"
- MrTorgue
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! :)
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
lol the "please dont make fun of it" made me laugh so much XD
brackeys you are a martyr bless your soul.
I LITERALLY WAS GOING TOO GOOGLE HOW TO DO THIS UR AN ABSOLUTE LEGEND
"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.
Great tutorial! You make seem simple the most complex tasks. Congrats!
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.
he really is an amazing teacher
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!
This video was a blast to watch
The best unity channel in the youtube :-)
Thank you .
The most efficient tutorials!!!
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
I spent hours making my own "explosion force" force, came here, after mostly failing not realizing there was a built in function for it...
*PAIN*
i also did this. ***P A I N***
To stop the looping if the explosion go to :
Prefab and select BigExplosiinEffect then uncheck Looping from the inspector window and disable Stop Action
Are you/Have you been a teacher ? You really have a talent for explaining things, that was really instructive and pleasant to watch
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!
Thank you so much for really cool tutorials for the grenade, I really loved thing explosion. :)
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.
FOR everyone having the effect loop infinately. Make sure you open the particle editor and uncheck looping for each component there is like 5.
Amazing as always!
You have a special ability for teaching, thank you Brackeys:)
Me: How to make a bomb?
Google: 🤔?
Me: For Unity 3D.
Google: Ohhhhh it's ok 👍.
Excellent video, well articulated and well presented. Subscribed!
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!
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.
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
@@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
@@furkankocak3142 abi yardımın için çok sağol oldu
@brackeys you're the man! Thanks for everything, keep it up.
WOA I GOT A CODE MONKEY UNITY TUTORIAL AD THINGY ON A UNITY TUTORIAL VIDEO
I would press Like button for hundreds of time if i could :) You're a great Unity teacher! Thank you
Best Unity Tutor on earth although my grenade blows up too quickly
Just change the delay in the inspector
Thank you Brackeys, I was inspired to use a part of explosion script in Flipper Bumper to repulse the ball :D
Thank you
here I am again reviewing your videos :)
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
U are the best there is.........................God Bless U Man. Much Love
From Morocco 🇲🇦 You’re the best
you make me love making games
Nice and Excellent Game Developer and Tutor
Thanks, thank you so much and lots of love from India.
your videos are such great quality. thank you so much!
I never thought that I'd ever love a man.
😳
Bruh
Thanks Brackeys, you're awesome!
Your videos are amazing man!!!
superb tutorial, subscribed!
AWESOME VIDEO MAN! YOU EXPLAIN AS EASY AS HELL!
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.
bro it's don't work
@@zeganazying5970 you have to inspect the prefab and turn off looping for each GameObject
Worked perfectly, thanks!!!!!!
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.
Thank you so much, just the best
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)?
Wow, what a great tutorial!
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
This is simple and very helpful tutorial
Thanks you helped me a lot 😍😍♥️🌹
Now this was awsome and well explaned :D
what a perfect tut video for beginners. Thanks!!
Great job...Thanks for very good tutorials....respect!
Very helpful, as usual. Thanks
thank you for sharing your knowledge in such a good way dude, !
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
Thanks for this cool tutorial!!
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))
thanksss
What about using Invoke in Start instead of managing the countdown in Update?
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)
You are very good teacher.
Thxs for this
Wow, it's a very useful video. Thanks
It's. Awesome dude keep going 💪
Great tut man!!
Thanks!
This video is helping me a lot😁😁😁
Thank you it worked for me!
Nice tutorial, thank you so much.
Okay. That was super helpful. Thank you very much! :D
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