Тёмный

Assault Rifle (Godot FPS Tutorial) 

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

How to make an assault rifle in Godot
FPS controller tutorial: • Improved First Person ...
Hitscan weapons tutorial: • Godot FPS Hitscan Weap...
Crosshair tutorial: • How To Add A Crosshair...
Bullet Hole Tutorial: • Easy Bullet Holes (God...
Source code: github.com/GarbajYT/godot-ass...
Buy Me A Coffee: ko-fi.com/garbaj
-- Social --
Discord: the discord server has been shut down, sorry!
Twitter: / garbaj2
-- Links --
Github: github.com/GarbajYT

Игры

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

 

22 сен 2020

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 169   
@maruf16khan
@maruf16khan 3 года назад
Okay fine, I will admit it. I like Godot more than Unity. (thanks to this guy!)
@garbaj
@garbaj 3 года назад
Same
@jfbrizzy6682
@jfbrizzy6682 2 года назад
Me too
@dirtbaker
@dirtbaker 2 года назад
It doesn’t take up 9GB and it has visual scripting.
@thecringeybatboy491
@thecringeybatboy491 2 года назад
Ya, and it doesn't take more time to load then to make a fps
@tutelbomb
@tutelbomb 2 года назад
i like godot because its great for beginners, doesn't take up 10gb and it has its own scripter within it and it works great + its only 200mb
@ash.n51
@ash.n51 3 года назад
PogChamp. Also you should consider making a full on game on a long live stream
@cinomontague
@cinomontague 3 года назад
Somebody give this man an egg
@DArK-xj8lr
@DArK-xj8lr 3 года назад
I instantly liked the video when I realised the mizizizi style of tutorials. STRAIGHT TO THE POINT! cool
@DuranMetalWolf
@DuranMetalWolf 3 года назад
JUST IN TIME, as always
@garbaj
@garbaj 3 года назад
Glad to help
@the_first_hunter
@the_first_hunter 3 года назад
I have my algorithm, I swear I know how to make it, and yet I clicked because I like your style :D
@garbaj
@garbaj 3 года назад
:D
@pascalcasier959
@pascalcasier959 3 года назад
Thank you again for sharing all those tutorials
@SamirPatnaik
@SamirPatnaik 3 года назад
Such an epic channel Garbaj
@Wodsobe
@Wodsobe 3 года назад
i like how you went the extra mile and added camera shake. thats pretty cool of you.
@Kura.tf2
@Kura.tf2 2 года назад
on discord i heard you like eating eggnog
@Wodsobe
@Wodsobe 2 года назад
@@Kura.tf2 shhhh...
@cringedmossy5260
@cringedmossy5260 3 года назад
Awesome Thanks for covering this
@BlazertronGames
@BlazertronGames 3 года назад
These are like the brackeys tutorials of Godot engine. These will probably help make the engine more popular!
@noobplayer-jc9hy
@noobplayer-jc9hy 2 года назад
For his kind work I wish everyone should buy him a coffee
@thecringeybatboy491
@thecringeybatboy491 2 года назад
These tutorials are amazing, you showed us how to make a full fps in a sum of 15 min.
@OGD1mple
@OGD1mple 2 года назад
Wow honestly i switched to godot, thanks to you! I really like that it is super similar to python.
@ninjabearca9602
@ninjabearca9602 3 года назад
Thanks was looking for this
@bity-bite
@bity-bite 3 года назад
Love the new art!
@garbaj
@garbaj 3 года назад
Thanks!
@daviddalisay5317
@daviddalisay5317 3 года назад
This tutorial is amazing! I wonder if the camera shake would look slightly better with rotational shake??
@days1835
@days1835 3 года назад
Another great tutorial!!!!!!! Still waiting for the hack and slash tutorials :)
@garbaj
@garbaj 3 года назад
Stay tuned!
@juanpal.g5983
@juanpal.g5983 3 года назад
Hello, I really like your videos, they are very helpful for me, keep it up, new sub
@Birb9.6
@Birb9.6 Месяц назад
Spatial Nodes are now Called Node3D since GD 4.0 for anyone wondering
@jasperbrooks2118
@jasperbrooks2118 3 года назад
lol, that was nice, Mzizizizi gave tutorial advice, lol . .
@danylbekhoucha6180
@danylbekhoucha6180 3 года назад
Hi, an idea for a tutorial, pushing rigid bodies when shooting them: if $Camera/RayCast.get_collider() is RigidBody: $Camera/RayCast.get_collider().apply_central_impulse(-$Camera/RayCast.get_collision_normal() * 50) The decal could be the child of the rigid body to follow it. And adding a force field explosion to push the rigid bodies from the impact area, I haven't found how to do it yet.
@garbaj
@garbaj 3 года назад
I've been brainstorming how to do something like this, we'll see what happens
@yigit7429
@yigit7429 3 года назад
Nice video! Can you make a tutorial on ragdolls? I couldnt find any good godot ragdoll tutorials.
@Mx-gz2cq
@Mx-gz2cq 2 года назад
Thanks, you're help me with mine game.
@tbcalfa1261
@tbcalfa1261 3 года назад
That's what I am searching Tq
@fragarena9910
@fragarena9910 3 года назад
fantastic
@threecolor3010
@threecolor3010 9 месяцев назад
Respect for AK47 texturing, looks pretty :>
@Antargataworks13
@Antargataworks13 3 года назад
Cool, man
@mehmedkahmed5601
@mehmedkahmed5601 2 года назад
thanks
@danielduppo992
@danielduppo992 2 года назад
Could you please make a reload tutorial for fps games in godot
@jms406
@jms406 2 года назад
Am gonna make my first ever gun game!!
@urbanfilms850
@urbanfilms850 4 месяца назад
Line 31, and 32, ‘Identifier “MAX_CAM_SHAKE” not declared in the current scope.’ can someone help?
@lionlight9514
@lionlight9514 2 года назад
Hey Garbaj Love Your Vids But The Camera Shake Isn't Working My Camera Get's stuck below me When I Shoot
@seraph8293
@seraph8293 2 года назад
this video was pretty interesting but i'm having trouble implementing this into a top down shooter i'm making, any idea on how to do this. For context I am a beginner and would really appreciate your input. I am using AnimatedSprite as my animator
@toby109tt6
@toby109tt6 3 года назад
Here's the shake effect line in case you can't get it right or are to lazy to type it (I sure wish someone posted it before me becouse writing this with my dyslexia was a true pain) One line. camera.translation = lerp(camera.translation, Vector3(rand_range(max_cam_shake, -max_cam_shake), rand_range(max_cam_shake, -max_cam_shake), 0), 0.5) Or multiple lines (It's the same thing just different to read) camera.translation = lerp(camera.translation, Vector3(rand_range(max_cam_shake, -max_cam_shake), rand_range(max_cam_shake, -max_cam_shake), 0), 0.5)
@mr.kavanoz6225
@mr.kavanoz6225 2 года назад
👍👍👍
@bgaming9.
@bgaming9. Год назад
if anyone is confused (because i sure was), onready var was changed to @onready var in the latest version. hope this helps!
@urbanfilms850
@urbanfilms850 4 месяца назад
How would you add gun shot audio to the animation?
@TheMerchant3773
@TheMerchant3773 Год назад
Can you make the raycast visible by giving it color/thickness? If you can, how would you?
@s.s.scriptties
@s.s.scriptties 3 года назад
the animation works fine but when I try t shoot ingame the game just crashs and when I removed the shootin code it worked just fine again
@robsonalbertoramos1954
@robsonalbertoramos1954 3 года назад
I have a question, is the doom's plasma rifle a hitscan weapon or a projectile weapon ? Sorry for the question, i am Noob for now in game dev
@garbaj
@garbaj 3 года назад
It appears to be projectile
@explosivesexplode
@explosivesexplode 3 года назад
don't forget to check the "Enabled" box on the raycast like how i did
@explosivesexplode
@explosivesexplode 3 года назад
also it's camera.translation = lerp(camera.translation, Vector3(rand_range(MAX_CAM_SHAKE, -MAX_CAM_SHAKE), rand_range(MAX_CAM_SHAKE, -MAX_CAM_SHAKE), 0), 0.5)
@iampokebro1224
@iampokebro1224 2 года назад
After one year but when I press fire game Stop
@deadlox7800
@deadlox7800 3 года назад
When I run the game in camera shake code camera.translation = lerp(camera.translation, Vector3(rand_range(MAX_CAM_SHAKE, -MAX_CAM_SHAKE), rand_range(MAX_CAM_SHAKE, -MAX_CAM_SHAKE), 0), 0.5) the error says Invalid get Index 'translation' (on base: 'GDScriptNativeClass') Please help
@Papa_Mess
@Papa_Mess Месяц назад
Godot changed the name to randf_range.
@vinirodrisant
@vinirodrisant 2 года назад
Make playlist pls, im so confused.
@StapledSquirrel
@StapledSquirrel 3 года назад
it says "script inherits from native type reference, so it can't be instanced in object type "spacial" "
@grossspaghett4430
@grossspaghett4430 2 года назад
I'm getting an error "The identifier "target" isn't declared in the current scope." Dose anyone know how to fix this?
@hansthegrenadier6411
@hansthegrenadier6411 Год назад
How to make the moving parts of the gun? Thx!
@venturex8441
@venturex8441 2 года назад
can you make an tutorial for gun recoil?
@StillGhost
@StillGhost Год назад
I Get A Error Invalid Index on based Kinematic body with value type int????
@TheMerchant3773
@TheMerchant3773 Год назад
when I hold down the fire button, it prints "fired a shot" once, even though the animation is looping. why is this happening, and how do I fix it?
@tlpenguin3758
@tlpenguin3758 2 года назад
im having the issue of how it wont deduct from the enemy's health (edit: nevermind i just had to turn on the raycast lol. thanks so much for this tutorial!)
@_pankaj117
@_pankaj117 3 года назад
Love the new logo👌🏼
@garbaj
@garbaj 3 года назад
Thanks!
@dietzel8988
@dietzel8988 2 года назад
after i tyoed in fire after process delta, my whole project died and screen went black, Can i get some help?
@Assem_DEV
@Assem_DEV 6 месяцев назад
Will this method work on Godot 4. I am talking about raycast. Will the function that checks the body if it is from the enemy group succeed?
@smartntboy2474
@smartntboy2474 Год назад
How can I modify the cam shake code to make it for a 2d platformer?
@stikthebot9332
@stikthebot9332 2 года назад
my gun isnt working, when i shoot the enemy its not taking damage
@micahhuettemann9765
@micahhuettemann9765 2 года назад
hi i really need help this works just fine but the animation wont play unless i move my mouse so i cant shoot whlie not looking around is there a fix im using godot 3.4
@sm0k33d
@sm0k33d 9 месяцев назад
i need help im just falling through the flor when i added the shake any ideas how to fix it? cuz i have copied everything down and im on the 3.5.4 version too
@tedouritheo
@tedouritheo 6 месяцев назад
im in godot 4 and the fire animation dont work ?
@raghavkulkarni3830
@raghavkulkarni3830 Год назад
Problem: When shot the gun model oscillates between the 2 position set through animation. After the LMB is released the gun model stops anywhere between the 2 positions, rarely at one of the 2 positions. This problem does not affect gameplay until shot while ADS is being used. Please help as I am new to godot and even to game development.
@gustavo3220
@gustavo3220 Год назад
i'm passing through this too, and searching for a solution, did you find it?
@LemonadeXG
@LemonadeXG Год назад
@@gustavo3220 Its lower in the comments, but essentially just remove the anim_player.stop() line and it will cycle correctly!
@gustavo3220
@gustavo3220 Год назад
@@LemonadeXG yeah, i've found this comment just after making my comment, thanks man
@Kura.tf2
@Kura.tf2 2 года назад
dude is talking faster than eminem
@krasnavin
@krasnavin 3 года назад
How do you add rifle render?
@Kiwin7
@Kiwin7 Год назад
bro i did everything just like u did and the thing doesn't shoot full auto
@mohandev42
@mohandev42 2 года назад
can anyone please help i am not able to make the gun fire
@Ryixxx
@Ryixxx 2 года назад
it keeps saying Invalid call. Nonexistent function 'is_colliding' in base 'MeshInstance'. but i did every thing in the vid correctly. how do i fix?
@NyxChill
@NyxChill 3 года назад
My onready var is not working
@crabbite3093
@crabbite3093 Год назад
how can I detect a shot if the ennemy is instanced?
@crabbite3093
@crabbite3093 Год назад
I got it thx
@zagame4real609
@zagame4real609 3 года назад
Is there anyway to add multiplayer?
@garbaj
@garbaj 3 года назад
Still working on it
@mackenzienewton4829
@mackenzienewton4829 2 года назад
what version are you on
@yrnteao
@yrnteao 2 года назад
If you have multiple weapons, do they all have to be crammed into the player controller script, or can they be organised into their own script?
@TheInfamousLegend27
@TheInfamousLegend27 2 года назад
you could probably just do what i do and contain each weapon as it's own scene. this way you can better micromanage important stuff, for example having separate weapon scenes means: 1. you only have to add weapons to a character if they're chosen, instead of having them all in the player scene. you can just implement inheritance for the one the player picks 2. you can have separate scripts, specialised nodes, even raycasts for different weapon ranges. this also means having separate variables, which means you don't have to chock your player script full of conditionals based on which weapon they choose. 3. it's more organised in general, so things don't get as messy and it's all self contained in their own scenes.
@aZaamBie135
@aZaamBie135 3 года назад
I have a problem, soemtimes when I stop pressing the fire button, the animation frame stops on like the 0.05th frame and doesn't finish the whole animation. Are there any ways to fully play the animation even if you click the button once?
@garbaj
@garbaj 3 года назад
this was an oversight of mine, just get rid of the line anim_player.stop()
@aZaamBie135
@aZaamBie135 3 года назад
@@garbaj oh ok, thanks!!
@seyipeters7923
@seyipeters7923 2 года назад
@@garbaj Hi Garbaj, thanks for this. I tried adding this rifle and its code to the fps character from your prev. tutorial but i come up with error: variable anim_play already exists in this class .. im new to this pls help
@lasloxd
@lasloxd 3 года назад
to me doesn't detect when animation player is not playing if it is in loop
@garbaj
@garbaj 3 года назад
Yes, same for me. Just turn off the loop
@vishalrajrai3866
@vishalrajrai3866 2 года назад
Link is not working 🥺 the gun model link
@OP-of2tm
@OP-of2tm 3 года назад
Thanks 😊
@zbord77
@zbord77 9 месяцев назад
where is ak module
@kenneththorpe804
@kenneththorpe804 3 года назад
Make sure to join the discord if you haven't
@sm0k33d
@sm0k33d 8 месяцев назад
MY GUN ISNT FOLLOWING ME ITS STUCK HOW DO I FIX IT?
@grimmey1541
@grimmey1541 8 месяцев назад
Is it a partent of your players head?
@NONSOLOOROLOGI
@NONSOLOOROLOGI 2 года назад
why fire() and anim_player.stop() give me "null instance error?
@bbgamingplay1511
@bbgamingplay1511 2 года назад
Same
@madcap7772
@madcap7772 3 года назад
I am getting a error "The method "fire" isn't declared in the current class"
@Pixko20
@Pixko20 3 года назад
Same Any fix
@bowuigi
@bowuigi 3 года назад
You forgot to put func fire():
@iampokebro1224
@iampokebro1224 2 года назад
@@bowuigi no
@faikyesilyaprak8761
@faikyesilyaprak8761 3 года назад
Hi, I have a question a followed your instructions literally though I could not get my code working. Raycast does not have is_in_group method on my godot engine? Can you help me out? I got stuck... also godot script intellisense also does not provide the method. It seems does not even exist???
@faikyesilyaprak8761
@faikyesilyaprak8761 3 года назад
I fixed the issue by simply adding a group to Enemy.tscn which is called Enemy. Thanks for great work
@gamerguy8261
@gamerguy8261 2 года назад
So how do u create the fake bullets coming out of the gun
@fr3etrial314
@fr3etrial314 Год назад
That's a projectile weapon, look up his tutorial on that
@gamerguy8261
@gamerguy8261 Год назад
@@fr3etrial314 thx
@bongoz8160
@bongoz8160 Год назад
my gun only fires once despite the animation looping
@fr3etrial314
@fr3etrial314 Год назад
Check if the your input is Input.is_action_pressed And not Inout.is_action_just_pressed
@bongoz8160
@bongoz8160 Год назад
@@fr3etrial314 if Input.is_action_pressed("fire"): yeah it's set to the right thing
@fr3etrial314
@fr3etrial314 Год назад
@@bongoz8160 send me all of your func fire() code, I'll check it
@falfit.
@falfit. 6 месяцев назад
What is ".translation" converted in c#? Same for "lerp"? I can't find anything. I spend more time on converting godot to c# than making my game 😭
@zvvgames
@zvvgames 5 месяцев назад
chat gpt 4
@thatoneorangeguyd5289
@thatoneorangeguyd5289 3 года назад
how to add muzzle flash?
@henodude7804
@henodude7804 2 года назад
Use a particles node. You can probably find tutorials for how to use particles.
@kiloalpha1067
@kiloalpha1067 Год назад
Hey guys I need some help So when I added the script for the camera shake nothing happened Like nothing It still looks lifeless So I'm just a bit confused even after following all steps Why isn't my camera shake working? (I'm using godot 3.5)
@MrArch777
@MrArch777 Год назад
I have the same issue, I was going to comment too but I see your post "a month old" has no replies... Anybody got the solution? I have no errors.
@viersechscemo
@viersechscemo 3 года назад
bro i really like your videos but why dont you show us everything in one Video youre making it so hard for us but anyways nice video
@watermelon8487
@watermelon8487 2 года назад
honestly this is easier than making a gun in roblox
@kalelojed3109
@kalelojed3109 2 года назад
Hi! I have done everything correctly but the enemy is not dying. How do I fix this?
@comnrade
@comnrade 2 года назад
Você tem certeza que ativou o raycast?
@LN20841
@LN20841 9 месяцев назад
maybe do this script: func _ready(): add_to_group("Enemy") Yeah im pretty late but I came here because I got a problem on camera shake xD
@joejames1414
@joejames1414 Год назад
4:15 / 6:40 Assault Rifle (God
@Pixko20
@Pixko20 3 года назад
Wont work No animation is being played
@mclix5924
@mclix5924 Год назад
its not working in godot 3.5
@fetaup9293
@fetaup9293 3 года назад
For some reason the enemy is not taking damage. Just kind of sitting there while I jump on it and blast it in the face
@docsmile1159
@docsmile1159 2 года назад
Same
@fr3etrial314
@fr3etrial314 Год назад
Same here, even tried a different method and it didnt work
@N_Sgames
@N_Sgames Год назад
When you are on the enemy scéne, you click on Node(at the top right corner) and add a group called "Enemy", this should work
@fetaup9293
@fetaup9293 Год назад
@@N_Sgames I will come back to this long lost forgotten project and finish the job I started
@crunch.dot.73
@crunch.dot.73 Год назад
​@@fetaup9293 inspirational
@gdmattartz3071
@gdmattartz3071 3 года назад
*A K 4 7*
@PoggersGroup
@PoggersGroup Год назад
Doesn’t work for me for some reason
@LN20841
@LN20841 9 месяцев назад
Im pretty late but maybe do this script: func _ready(): add_to_group("Enemy")
@print4life
@print4life 2 года назад
your website doesn't work I'm not sure if you know this :}
@AbdouMadjidi_.
@AbdouMadjidi_. 2 года назад
this guy showed us everything to shoot bullets except of the bullets themselves
@rambosweat
@rambosweat 3 года назад
plz don't read out the code, just explain what it does. :)
@Goodmist4467
@Goodmist4467 Год назад
the enemy is not dying ):
@LN20841
@LN20841 Год назад
maybe do this script: func _ready(): add_to_group("Enemy")
@Goodmist4467
@Goodmist4467 Год назад
@@LN20841 thx
@LN20841
@LN20841 Год назад
@@Goodmist4467 youre welcome
@DArK-xj8lr
@DArK-xj8lr 3 года назад
How to add an actual enemy instead of a red BEAN!
@henodude7804
@henodude7804 2 года назад
Add a 3D model for an enemy
@Dawid30303
@Dawid30303 9 месяцев назад
Add a 3D model for an enemy
@DYNAMIC157
@DYNAMIC157 3 года назад
.
Далее
Easy Bullet Holes (Godot Decal Tutorial)
5:08
Просмотров 29 тыс.
Редакция. News: 125-я неделя
48:25
Просмотров 1,8 млн
DOTA 2 - КЛАССИКА
19:17
Просмотров 210 тыс.
Melee Weapons (Godot FPS Tutorial)
8:02
Просмотров 30 тыс.
Making a 3D First Person Game in Godot | Devlog 1
8:42
Can 1990's Technology Run Minecraft?
9:54
Просмотров 48 тыс.
Complete 3D Shooting Mechanics - Godot 4 FPS Tutorial
12:14
I Made the Same Game in 8 Engines
12:34
Просмотров 3,9 млн
How I made an Excellent Platformer
8:25
Просмотров 261 тыс.
5 Steps To Gorgeous Game Art
10:30
Просмотров 249 тыс.
This is one of my favorite video game exploits
3:27
Просмотров 243 тыс.
[RU] Winline EPIC Standoff 2 Major | LAN | Final Day
9:48:47
МЕТРО ПАБГ СОЛО СКВАД
4:0:04
Просмотров 56 тыс.
стримим стандофф 2
2:42:33
Просмотров 85 тыс.