Тёмный
No video :(

Melee Weapons (Godot FPS Tutorial) 

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

How to make melee weapons in Godot
FPS controller: • Improved First Person ...
Flamethrower: • Flamethrower (Godot Tu...
Hitscan Weapons: • Godot FPS Hitscan Weap...
Source Code: github.com/Gar...
Buy Me A Coffee: ko-fi.com/garbaj
-- Social --
Discord: the discord server has been shut down, sorry!
Twitter: / garbaj2
-- Links --
Website: garbaj.net
Github: github.com/Gar...

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

 

23 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 103   
@Spar3Tim3r
@Spar3Tim3r 3 года назад
I love your tutorials. You're gonna be the Brackeys of Godot. I can feel it.
@garbaj
@garbaj 3 года назад
I hope so!
@AleksandarPopovic
@AleksandarPopovic 3 года назад
That is true!!!!
@AleksandarPopovic
@AleksandarPopovic 3 года назад
This channel must explode!!!!!
@__someone8938
@__someone8938 3 года назад
He is :)
@StudioNBS
@StudioNBS 2 года назад
went through like 12 videos last night, no errors running anything, had the same thought 😂
@maruf16khan
@maruf16khan 3 года назад
Memelord plus a fine teacher. You Sir, are a man of culture.
@garbaj
@garbaj 3 года назад
I wear many hats B)
@fragarena9910
@fragarena9910 3 года назад
@@garbaj xD yes
@swishfish8858
@swishfish8858 3 года назад
For the record: You could TOTALLY do this as one animation, using other tracks and exported variables. Create an exported Boolean variable called "is_attacking" or something, and in the animation, key it to "true" at the beginning and "false" when the forward swing is done. Then check to apply damage whenever this variable is true. Alternatively, you could key a function in the animation to run at a certain point which would then check for damage at the apex of contact. The downside to this approach is that it'll only do this for one frame (unless you key the func multiple frames in succession, I suppose, but I don't know what that would do do performance.)
@Ceisriel
@Ceisriel Год назад
no you can't i tried it, and not matter how high low stable or unstable the FPS or the physics FPS are, sometimes the animation skip call tracks.
@abbasimaaz7223
@abbasimaaz7223 3 года назад
Wow! and thanks Hoping for an inventory system in near future
@rv178
@rv178 3 года назад
Garbaj I also upload godot tutorials like you... You were my inspiration to make godot tutorials... Thanks :) And by the way nice tutorial!
@garbaj
@garbaj 3 года назад
Nice, keep it up!
@rv178
@rv178 3 года назад
@@garbaj Thank you Garbaj :)
@tiaoraitbg2347
@tiaoraitbg2347 3 года назад
Wow, this is the first I've seen of the .queue being used, before I thought in order to chain animations together you'd have to signal the next one at the end of the prior one, good video
@pascalcasier959
@pascalcasier959 3 года назад
Thank you for another great tutorial. Been learning a lot from them. Keep up please
@garbaj
@garbaj 3 года назад
Thanks, will do!
@days1835
@days1835 3 года назад
finally.....my prayers have been answered Thx man!!!!!
@bity-bite
@bity-bite 3 года назад
Can you do a tutorial on the animation tool in Godot? It could be an amazing series
@garbaj
@garbaj 3 года назад
pretty big topic, what parts of animation do you want to learn about? I'm planning to do a video on animation tree but there's a lot of other things to cover too
@bity-bite
@bity-bite 3 года назад
@@garbaj the animation tool, how to deal with it
@fragarena9910
@fragarena9910 3 года назад
@@garbaj yes pls , anything regarding animation would be helpful , it's pretty lacking on yt
@hermitxIII
@hermitxIII 3 года назад
You are my hero. You uploaded this hours before I started looking it up. It must be fate.
@garbaj
@garbaj 3 года назад
Happy to hear that!
@tubagusthariqgilbraltar7499
@tubagusthariqgilbraltar7499 3 года назад
The enemy wont die, the enemy, the node of the enemy is kinematic body - sprite 3d and collision
@megastkgames
@megastkgames 3 года назад
Lots of information! Your videos help me a lot to learn about Godot 3D stuff.
@anarchy3508
@anarchy3508 3 года назад
i have two requests for your next vids, a grappling hook tutorial that has physics so you can swing and stuff, and a wallrunning tutorial basically like the one you used for your overwatch game
@NOPerative
@NOPerative 3 года назад
Protective eyewear is a must for this tutorial -gotta wear them goggles when hammin them stakes!
@helloworld5219
@helloworld5219 3 года назад
You are a good man, thanks you.
@root4098
@root4098 3 года назад
great tutorial like always! should try to make it toggle to third person too!
@garbaj
@garbaj 3 года назад
pretty simple, just move the camera back a little
@robsonalbertoramos1954
@robsonalbertoramos1954 3 года назад
new video !
@DArK-xj8lr
@DArK-xj8lr 3 года назад
Ohhh that's what I wanted nice 👍
@sedovt
@sedovt 2 года назад
Love the tutorial! Just a short question: I'm pretty new to 3D game development, but wouldn't it be more practical to preload the blood splatter particle on the enemy's script rather than preloading it on the player's script in this example? Though I can probably guess that if you do that, there would be some annoying bugs like the enemy bleeding after getting hit once, etc.
@sipofliquid
@sipofliquid Год назад
It'd be better to attach the effect to the player, so that you could eventually do 1 of 2 things - a raycast to spawn the effect where the player is looking, or attach to the weapon or collision to spawn where the collision takes place
@liquidebleu
@liquidebleu 3 года назад
Awesome, thank you! It is possible to complete this tutorial with a melee combo system ? ^^
@garbaj
@garbaj 3 года назад
An interesting idea for a future video. We'll see what happens!
@apenasgargorio
@apenasgargorio 11 месяцев назад
godot team fortress les goo
@Chafmere
@Chafmere 3 года назад
saved me, thank you!
@chJohnJobs
@chJohnJobs 3 года назад
Amazing tutorial. also GD script is an extremely simple coding languege
@chJohnJobs
@chJohnJobs 3 года назад
also im using this for a 3rd person fighting game, Ill write a reply and tell you how well it works
@CaptainCoBa
@CaptainCoBa 3 года назад
Great video tutorial, as always! ^) btw, any chance of waiting for your videos about environment shaders (terrain, grass, water, etc..)? TY!
@garbaj
@garbaj 3 года назад
I want to make some videos on shaders but it might take a while since I know nothing about shaders
@CaptainCoBa
@CaptainCoBa 3 года назад
@@garbaj I'll be waiting!
@rockneck111
@rockneck111 9 месяцев назад
how do i get a spatial node help
@gokulnathiel
@gokulnathiel 3 года назад
Hey man I was making a game which involves vehicles like airplanes and cars. And I'm really confused and I couldn't find much help online. Would really appreciate it if you could start a session involving vehicles. It would be really helpful to a lot of people too because there is not even a single tutorial on RU-vid on vehicles in Godot.
@garbaj
@garbaj 3 года назад
I hope to do some videos on that soon, stay tuned!
@fragarena9910
@fragarena9910 3 года назад
love yer stuff man
@garbaj
@garbaj 3 года назад
Thanks!
@telvyphil2548
@telvyphil2548 3 года назад
Bonk
@garbaj
@garbaj 3 года назад
correct
@havi_rex_4299
@havi_rex_4299 2 года назад
Thank you so much u are the best
@beneditooliveira3942
@beneditooliveira3942 5 месяцев назад
I'm in need of help. The animations are working perfectly, but there is this problem that I am not able to resolve. I have no idea why but the weapon mesh appears on the opposite side to where I placed it
@koceila552
@koceila552 3 года назад
i love you. thanks a lot
@DDIX339
@DDIX339 2 года назад
Классные у вас уроки , спасибо что уделяете время для нас .
@thatoneorangeguyd5289
@thatoneorangeguyd5289 3 года назад
how to add multiple attack animations
@jamesxxxyz8775
@jamesxxxyz8775 3 года назад
You could do this attack without animationplayer, instead rotate it until it hits another collisionshape...
@garbaj
@garbaj 3 года назад
Well the thing is that the hammer itself doesn't have a hit box. It's purely visual. The thing that actually does the damage is the hitbox attached to the camera. I find that putting a hitbox on the weapon itself feels really weird and inconsistent even if it is more realistic.
@Googoogagafnaf
@Googoogagafnaf 2 года назад
honestly, I do not care about everything else I just want to know how to use the animation player
@mr0o
@mr0o 3 года назад
Maybe its beyond your scope but it would be pretty cool if we got a tutorial for ragdolls. Not even sure if its possible because I have seen very few videos of ragdolls in godot
@garbaj
@garbaj 3 года назад
Ragdolls have been very buggy for me, hopefully I can figure out how to do it correctly
@mr0o
@mr0o 3 года назад
@@garbaj yeah from from what I've seen ragdolls can be glitchy af in gadot, but I haven't seen if perhaps there are better ways to implement a ragdoll into gadot. Idk but either way your tutorials are great so just keep at it man
@hypra7655
@hypra7655 3 года назад
TYSM
@floorbeardthepirate1141
@floorbeardthepirate1141 3 года назад
Could you make a tutorial on how to do glory kills, like in DOOM?
@CitizenCoder
@CitizenCoder 6 месяцев назад
stupid question maybe: have you tested it to see if spamming the mouse button breaks it? I've been working with similar code (though haven't tried the queue part) and spamming the button freezes my game/player eventually.
@Icie145
@Icie145 3 года назад
im having issues on particles, the particles did spawn but it doesn't show up
@gravitowl
@gravitowl 3 года назад
Hey could you do a new video on the enemies? Also how would i do a cone of vision for them?
@garbaj
@garbaj 3 года назад
You would use a dot product for that. Hopefully I can make a video on it soon
@gravitowl
@gravitowl 3 года назад
@@garbaj Okay, and how would i do a more complex shape than a simple cone?
@garbaj
@garbaj 3 года назад
Not too sure, I'll have to think on it
@gravitowl
@gravitowl 3 года назад
@@garbaj Okay, was trying to make a stealth game and ran in a few problems. Your channel was still very helpful for learning godot, and will be! Maybe do a follow up tutorial for the wallrunning too with camera tilt? Not meaning to put a lot of pressure on you so don't do it if you don't want to!
@gravitowl
@gravitowl 3 года назад
@@garbaj Okay!
@velsein
@velsein Год назад
what if I want to add multiple types of attacks?
@drinkwatrr9883
@drinkwatrr9883 3 года назад
Hey Garbaj, can you make a weapon class or equipping different weapons tutorial please, rn I don’t know how to have a player with more than one weapon
@garbaj
@garbaj 3 года назад
I'll put it on the list
@drinkwatrr9883
@drinkwatrr9883 3 года назад
Thanks😄
@gdmattartz3071
@gdmattartz3071 3 года назад
*b o n k*
@hijack2568
@hijack2568 3 года назад
Sir can you please tell how to make our third person character jump like Max Payne (bullet time)
@garbaj
@garbaj 3 года назад
I'm not familiar with the mechanic but I can take a look
@samuelhugo3387
@samuelhugo3387 Год назад
this is all great, but in a real game we will want to be able to switch weapons, so the melee weapon will have to be a separate scene as we might have different melee weapons that we want to equip, so we will need to make the animation for that weapon in a sepparate scene the qeustion is how to play that animation from the player script when its equiped?
@ilhamrismawan5377
@ilhamrismawan5377 3 года назад
can you do make a Non-Euclidean like portal or Antichamber?
@garbaj
@garbaj 3 года назад
Maybe one day I'll be smart enough to make something like that
@ilhamrismawan5377
@ilhamrismawan5377 3 года назад
Ok I will waiting
@TheMerchant3773
@TheMerchant3773 Год назад
I have a question that I haven't really found any answeres for anywhere. How do I stop actions from happening if certain animations are playing, like not being able to shoot while reloading
@IceWolve67
@IceWolve67 6 месяцев назад
could you not just play the animation in reverse instead of creating a new one ?
@IceWolve67
@IceWolve67 6 месяцев назад
I tried playing backwards and it works fine ! my code for melee : func melee(): if !weapon_animation_player.is_playing(): weapon_animation_player.play("Attack_melee_1h_sword") await weapon_animation_player.animation_finished weapon_animation_player.play_backwards("Attack_melee_1h_sword") for body in melee_hitbox.get_overlapping_bodies(): if body.is_in_group("enemy"): body.health_manager(melee_damage)
@Icie145
@Icie145 3 года назад
so my enemy is on navigation node cuz i have enemy ai, and it doesn't spawn the particles, is there a way to fix it?
@nonoonchi4514
@nonoonchi4514 3 года назад
hey look i drew that
@TirzaBoi
@TirzaBoi 2 года назад
How about multiplayer tutorial?
@mackenzienewton4829
@mackenzienewton4829 Год назад
multiplayer is incredibley dificult you need to pay for servers and stuff
@TirzaBoi
@TirzaBoi Год назад
@@mackenzienewton4829 ik thats why im asking AND you can make free servers.
@grindx1292
@grindx1292 3 года назад
Hi Garbaj! Im wondering how do you make it so the animation is stopped at the beginning? bc mine is rotated when i start the game.
@garbaj
@garbaj 3 года назад
Did you make sure the animation slider is at the beginning of the animation?
@grindx1292
@grindx1292 3 года назад
@@garbaj oh yeah! that was the problem. Also, can you make a health bar/ stamina bar tutorial?
@NexSilverMinecraft
@NexSilverMinecraft Год назад
hello
@ILoveWatchingTy
@ILoveWatchingTy 3 года назад
First
@helloworld5219
@helloworld5219 3 года назад
no
@ILoveWatchingTy
@ILoveWatchingTy 3 года назад
@@helloworld5219 nokay
@ronstephen
@ronstephen 3 года назад
Today I realised making a game in godot is way easier than making a softwere. Change your channel's name cuse you are a pearl.
Далее
How To Aim Down Sights (ADS) In Godot
5:48
Просмотров 19 тыс.
Godot 4 3D - FPS Melee Attack
17:22
Просмотров 28 тыс.
Godot FPS Tutorial - Projectile Weapons
14:49
Просмотров 52 тыс.
Damascus Steel From Stick Welding Electrodes
14:15
Просмотров 620 тыс.
Weapon Switching In Godot - FPS Tutorial
14:41
Просмотров 33 тыс.
Optimizing my Game so it Runs on a Potato
19:02
Просмотров 552 тыс.
choosing a game engine is easy, actually
15:08
Просмотров 437 тыс.
I Made My First Game in Godot in 3 Weeks...
26:21
Просмотров 315 тыс.
How To Make A Doom Clone In Godot 4
27:57
Просмотров 75 тыс.
Let's Program Doom - Part 1
25:13
Просмотров 422 тыс.