Тёмный
No video :(

Why Video Game Grenades Don't Work Like Real Grenades - Godot Tutorial 

Garbaj
Подписаться 460 тыс.
Просмотров 12 тыс.
50% 1

-- Social --
Discord: The discord server has been shut down, sorry!
Twitter: / garbaj2
-- Links --
Github: github.com/Gar...
-- About --
Video game grenades may appear to be the same as their real life counterparts, but they're actually quite different. In this Godot tutorial, I'll be showing you how to add grenades to your video game

Опубликовано:

 

24 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 67   
@Wodsobe
@Wodsobe 4 года назад
Im still getting surprised by how easy it is to do advanced stuff in Godor.
@garbaj
@garbaj 4 года назад
Godot is love, Godot is life
@fragarena9910
@fragarena9910 4 года назад
it is really strong for beginners like me :D hope they would polish out some of the rough edges and make the 3D better in 4.0 version.
@Wodsobe
@Wodsobe 4 года назад
@@fragarena9910 Well its seems like it at first, until the explains it, then it all makes sense :)
@canaldosoninho
@canaldosoninho 3 года назад
In portuguese dor mean pain, i fucking lost it when i read godor
@gaybrielteucu7854
@gaybrielteucu7854 3 года назад
@@canaldosoninho alá brkkkkkkkkkkkkkkkkkkk
@colly9888
@colly9888 3 года назад
game development without a tutorial as guidance is scary. i need garbaj's warm and comforting voice to guide me through the sea of options in the inspector.
@Anthonypython
@Anthonypython 3 года назад
hello colly
@nightcode3171
@nightcode3171 4 года назад
Its like ur covering an fps game series, thanks again for the tutorial 🙂
@nightcode3171
@nightcode3171 4 года назад
Will u be making a simple item pickup mechanic for fps?
@garbaj
@garbaj 4 года назад
This one's harder than I thought. I'm still trying to figure it out
@MitchMakesThings
@MitchMakesThings 4 года назад
@@garbaj I feel bad for linking to a video of mine from here, but this might give you some ideas - ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-C_-faOyIuTQ.html
@manusiatidakbiasa
@manusiatidakbiasa 4 года назад
@@nightcode3171 are you talking about picking up item to add into inventory or gravity gun style picking up object? Because the second one is way harder to do. For the first one you can simply attach a raycast to camera pointing forward and check if that raycast recognize the object, if so then change the counting item variable and delete the object
@nightcode3171
@nightcode3171 4 года назад
@@garbaj I tried doing some recycling and used garbaj hitscan for item pickup and it worked for my simple game in which the raycast touches the item and then destroys it and update my scripts. Tho i will still wait for your way of doing it if u figured it out 😊
@NOPerative
@NOPerative 4 года назад
Animate an arm swing and at a certain frame trigger the grenade object spawn, apply velocity and all the gravitational goodies and let it fly. Excellent video again G!
@henodude7804
@henodude7804 2 года назад
I found a flaw with the raycasting code. If an enemy is behind another enemy and the raycast checks the further enemy first, the further enemy will be fine. However, if it checks the closer enemy first, the further enemy will die because the closer enemy is dead, so the ray can’t collide with it. The only solution I can find to this is to add the enemy to a list when a ray hits it, and then damage all enemies in the list afterwards.
@mj2carlsbad
@mj2carlsbad 3 года назад
A cool thing an old game called Blood does is expand the explosion sphere over a short time frame, starting from 0 radius and ending at its final blast radius.. damaging and pushing every time the sphere expands and touches an entity
@ianhornblower7358
@ianhornblower7358 4 года назад
Just found ur channel, what you do is so sick love what your doing
@ZachHixsonTutorials
@ZachHixsonTutorials 3 года назад
In an actual game, wouldn't it make more sense to set up a global event bus, and have an "explosion," event? That way when a grenade goes off, it emits the signal _explosion(position, radius)_. The enemies can then check if they are within the explosion radius, and cast a ray back to the position point, decoupling the grenade object from the enemy object, and also opening the possibility for "generic," explosion damage. Great tutorial though! I just found this channel and really wish I had it back in march when I was in a game design class and had to figure most of this stuff out the hard way
@garbaj
@garbaj 3 года назад
Honestly I have no idea what a global event bus is, but it sounds like the way to go. Thanks for letting me know about it so I can improve my future tutorials!
@toafloast1883
@toafloast1883 3 года назад
Wouldn't that be silly, since every enemy would have to check if is close to the grenade, rather than the grenade checking for enemies in a localized area?
@ZachHixsonTutorials
@ZachHixsonTutorials 3 года назад
@@garbaj it's not that hard to set up, and there are plenty of tutorials online if you just Google it. Basically it's just an 'Autoload', script that has some signals declared in it. You can then link to these signals from any object. Ex: you would declare an "explosion," signal that takes a position parameter. Any object that creates an explosion can now call this, and any object that takes explosive damage can now listen for this. These two objects don't need to be aware the other exists to function
@ZachHixsonTutorials
@ZachHixsonTutorials 3 года назад
@@toafloast1883 the distance/collision checks are happening anyways with the "get_overlapping_bodies," method, where it's checking all objects in the scene to see if they overlap. With an event bus, only enemies & objects that took collision damage would have to make the check
@potat1658
@potat1658 4 года назад
This guy is very underrated.
@ash.n51
@ash.n51 4 года назад
Well damn. I didn't know I needed this in my game but turns out, I do. Thanks!
@KingThrillgore
@KingThrillgore Год назад
Since Garbaj didn't explain, I will. Video game grenades don't work like they do in reality. Grenades don't simply explode, they shatter a casing that sends shrapnel, and while you can model the shrapnel blast on a sphere, you can't guarantee the shrapnel will follow a fixed path to anyone it intends to wound. You could do this with Rigid Body particles, but that's a lot of work and it has no impact on the player's expectations.
@utetwo9709
@utetwo9709 4 года назад
This video is garbaj!
@RedHeadphone
@RedHeadphone 4 года назад
U can name it uwu 😂
@VolpeJosesk
@VolpeJosesk 3 года назад
owo
@fragarena9910
@fragarena9910 4 года назад
NOICE , side tip : we can use your projectile tut and this one to make rocket launcher :D
@garbaj
@garbaj 4 года назад
Exactamundo, also, rocket jumping? hmmm?
@somerandosalt6118
@somerandosalt6118 4 года назад
I like these vids they are the only ones that help me use Godot and understand it better this channel deserves more subs
@garbaj
@garbaj 4 года назад
Glad you like them
@zyxoto1264
@zyxoto1264 3 года назад
If you want the grenade to damage all bodies then remove If b.is_in_group ("Enemy"):
@unfa00
@unfa00 2 года назад
5:02 - I was sure this is going to be a "Click like, Subscribe and &%^@(%&@" plug. LOL. Welcome to YT.
@Julian-vi4vl
@Julian-vi4vl 3 года назад
I like how if the wall is an enemy it doesn't protect its fellow teammate from grenades =)
@jonathanmarshgames4400
@jonathanmarshgames4400 3 года назад
You have the best Godot tutorials! UwU
@WillowThomkin
@WillowThomkin Год назад
Now next’s to combine this with the line of sight algorithm I found on the internet. How would one detect the endpoints of a collider?
@grass324
@grass324 Год назад
what about luanching or throwing the grenade?
@canyoudont387
@canyoudont387 3 года назад
Maybe you should make a video about your character is actually never touching the ground so your legs dont go into the ground.
@Icessien
@Icessien 4 года назад
I'm not going to be surprised if one of your new videos would be about an fps project you've been working on😁😂
@SouAndersonDavid
@SouAndersonDavid 2 года назад
I was really curious about how raycast would help.
@warriorsimplicity1
@warriorsimplicity1 4 года назад
i really need help 😭😭😭😭 I need a video for how to make an enemy AI That follows the player and attack him
@Kevin-jp4rb
@Kevin-jp4rb 4 года назад
Would you do a tutorial series for 3d (rpg) action combat? Like a simpler Dark Souls or Devil May Cry?
@Crisisdarkness
@Crisisdarkness 4 года назад
Good idea, friend. That's the combat style that I like the most.
@CreatingRiot
@CreatingRiot 2 года назад
Do you know if it's possible to raycast to all enemies inside the radius, even if they are behind other enemies? with this method the raycast to the second enemy would never work because it would hit, again, the first one.
@clarityVALO
@clarityVALO Год назад
i am 7 months late but you can add all the enemies to a list and then damage everyone in that list
@agatasoda
@agatasoda 4 года назад
Meat popsicle is a good alternative
@asylum4298
@asylum4298 4 года назад
Excelente, este método lo vengo usando mucho antes de este vídeo y gracias exactamente a tus vídeos de bullet hit raycast
@DanioDevs
@DanioDevs 4 года назад
Hey man I'm making a parkour game and I'm wondering how to make speed lines on the screen, I've tried using a video player but I can't seem to get the video to repeat, am I doing something wrong, like should I be using a particle system instead
@RevTheGame
@RevTheGame 4 года назад
I've been using the video player and had issues with it. I looked at the source code and the looping function hasn't been implemented yet. You can make your own by using the finished() signal that plays the video again via code, but the particle system would be the best option.
@rhylendculver6001
@rhylendculver6001 4 года назад
content go brrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
@arturorojas1062
@arturorojas1062 4 года назад
Any chance you can share a project with the scene setup you have? (Walls, obstacles, etc)
@doomestus
@doomestus 6 месяцев назад
Damn it all... Second time I try to do something and everything goes haywire... -Tried to make grenades using this guide. -Added them to existing code -Decided to rewrite it cleaner and deleted all changes -Checked if the old code still works -It doesn't... -... -Slowly go crazy with this "shait" Why does the code breaks if you change it and then delete changes you did? Is this a feature?
@Xerbius_YT
@Xerbius_YT 4 месяца назад
Its called "Godot is a bit differeent 3 years later" and its really annoying
@itsfela
@itsfela 4 года назад
Why isn't this one on github? ;(
@garbaj
@garbaj 4 года назад
It's a bit of laziness and a bit of possibly wanting to create my own website to host all my stuff
@itsfela
@itsfela 4 года назад
@@garbaj Daaam you're giving it for a more professional look lol. Go for it man, the way you teach and the editing skills you have are something you can exploit to get known through marketing and an official webpage. We all know that one of these days godot will blow up in popularity, as it's growing now, and that you wanna be in that train!
@Mrpaul20
@Mrpaul20 4 года назад
wow thank you
@mr.kavanoz6225
@mr.kavanoz6225 2 года назад
👍👍👍👍👍
@leo28804
@leo28804 4 года назад
Nice
@seemarajput779
@seemarajput779 4 года назад
hey garbaj please provide ypur email i wanna semd you a project linked with weapon picking and dropping
@scuffedcoding3814
@scuffedcoding3814 4 года назад
Please do unity
Далее
Third Person Camera Collider (Godot Tutorial)
2:32
Просмотров 10 тыс.
Enemy AI Series 1: The State Machine
12:10
Просмотров 51 тыс.
The Formula for Replayable Games
18:44
Просмотров 252 тыс.
Godot FPS Tutorial - Projectile Weapons
14:49
Просмотров 52 тыс.
They made a game about philosophy...
23:19
Просмотров 457 тыс.
The biggest lie in video games
15:18
Просмотров 1,8 млн
Damascus Steel From Stick Welding Electrodes
14:15
Просмотров 648 тыс.
I Optimised My Game Engine Up To 12000 FPS
11:58
Просмотров 647 тыс.
Weapon Switching In Godot - FPS Tutorial
14:41
Просмотров 33 тыс.
When AI Plays Wordle..
21:49
Просмотров 41 тыс.