Тёмный
No video :(

Weapon Camera & Aim Down Sights - Make an FPS in Godot Part 5 

Code with Tom
Подписаться 13 тыс.
Просмотров 26 тыс.
50% 1

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

 

24 авг 2024

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 95   
@CellarPhantom
@CellarPhantom 28 дней назад
Still working, four years later. Lovely!
@DonLeeelbow667
@DonLeeelbow667 2 года назад
wow after the 3rd time watching this I finally realized I had is_action_just_pressed instead of is_action_pressed. Thank you for the fantastic turorial, I just wish I could follow instructions better!
@wzukay6648
@wzukay6648 4 года назад
I really love your FPS tutorials!!!
@CodeWithTom
@CodeWithTom 4 года назад
Thank you Adrian! More to come soon :)
@MRPiki-js4jg
@MRPiki-js4jg 3 года назад
@@CodeWithTom please make an animation rig and animation node editor tutorial next
@mottely
@mottely 4 года назад
Don't usually comment on videos but these tutorials have been extraordinarily helpful. Looking forward to more, thanks for all the information!
@midasmyad
@midasmyad 4 года назад
great! banging it out without too much blah blah. All the info i need and to the point. This is why I watch you!
@CodeWithTom
@CodeWithTom 4 года назад
Thanks Myriad, really appreciate it! :)
@5minutemovies977
@5minutemovies977 4 года назад
I've been trying to make a multi viewports set up, but somehow I've not been able to pull it off. I went on your channel looking for something else, but when I saw this video, I suddenly forgot what I wanted in the first place !
@supriyakhanra9068
@supriyakhanra9068 4 года назад
Thank u Tom for giving such wonderful tutorials I am new to godot ( basically a unity user) I actually want to know more about godot So thanks
@tonalegoni6404
@tonalegoni6404 4 года назад
Love ur tutorials, they're amazing and simple. Thanks a lot for making me start loving godot. ready for part6 👍👍👍
@HasanRx7
@HasanRx7 4 года назад
There is actually a flag for materials called "No Depth Test". If you check it for the gun material, it will draw the gun above everything in the scene which fixes clipping problem in just one click. However, I'm not sure how reliable it is though, as when I used it with a 3D plane mesh displaying UI elements in the 3D world through a viewport texture,, it did still have the clipping problem with that. I learned this accidentally from one of the Godot tutorials in RU-vid and liked to share it with you.
@vickylance
@vickylance 4 года назад
I think with the help of this method we can also do one more cool thing. Set higher FOV for the main camera and low FOV for the weapons camera
@CodeWithTom
@CodeWithTom 4 года назад
@@vickylance yeah absolutely. If you use a single camera and mess around with the FOV the weapon starts to look very strange 😁
@973sandman
@973sandman 3 года назад
@GrGoGamer thanks for this comment 🙏🏻, I checked and it works just fine, enable no depth test and set the render priority higher (default is 0, I used 1 for the weapon, higher values are in front). The weapon doesn't clip and receive lights and shadows.
@HasanRx7
@HasanRx7 3 года назад
@@973sandman Your welcome. Glad it helped 😁
@973sandman
@973sandman 3 года назад
@@HasanRx7 I did some more detailed tests with more complex meshes and unfortunately it started to give problems, in the end I solved with the viewport and the second camera following another tutorial, lights and shadows seem to work too. However, it is useful to know that there is that possibility for other features.
@liveshaitan9086
@liveshaitan9086 3 года назад
it is the best with the help of your tutorials I had make a fps character game in godot
@RedHeadphone
@RedHeadphone 4 года назад
I was stuck at this thanks now I m all motivated
@techofhappiness395
@techofhappiness395 4 года назад
Really Awesome Tutorial
@CodeWithTom
@CodeWithTom 4 года назад
Glad you liked it!
@danielhadad4911
@danielhadad4911 3 года назад
Thank you a million times, this series was amazing! I'd love to see anything you come up with for the next tutorials.
@jojofansiraq998
@jojofansiraq998 4 года назад
I love your FPS tutorial, hope to see the next part 💥💪
@anime_gamer9567
@anime_gamer9567 4 года назад
Hello Code with Tom Please give us a 6th part
@Gredran
@Gredran 2 года назад
Thank you so much for recommending asset forge. I know it’s paid, but the fact that Kenney releases SOOO many assets for free, it doesn’t hurt to support such an incredible tool for a measly 20 bucks if you’re able :) Thanks so much for the tutorials!
@तंत्र
@तंत्र 3 года назад
Amazing tutorial.... Loved it...more godot content would be really nice....
@NOPerative
@NOPerative 4 года назад
Incredible work.
@CodeWithTom
@CodeWithTom 4 года назад
Thanks Robert I really appreciate it!
@AgnisNeZvers
@AgnisNeZvers 3 года назад
This is amazing, but this is also needed to have different FOV on weapons for correct animations. But it also is bringing the next problem - enemies can have the same guns, so it's needed to switch those rendering layers. Also, muzzle flash is needed to be on a separate layer if the gun is with the player.
@baileymckee1700
@baileymckee1700 3 года назад
Maybe next you could do particles coming out the gun and music and sfx and a title screen and make a health bar and the enemy shotting Plus love the vids
@calebpeters4473
@calebpeters4473 3 года назад
I love the tutorial but there is one problem. I didn’t use asset lab and created my own shotgun out of mesh instants but the collisions refused to work no matter what so my gun is clipping through geometry. Please help?
@evanarmont
@evanarmont 2 года назад
I don't know if I am too late to help, but I also made my own model. I created a new 3d scene in the folder where I have my guns, and called it "Shotgun". Under the spatial node, I added four mesh instances for the different parts, so it looks something like this: Spatial Barrel Magazine Forestock Receiver (the part that connects the handle to the barrel) Make sure that only the weapons layer is active under "visual instance" in all peices. Hope this helps
@ishkapoor7931
@ishkapoor7931 4 года назад
This was a really lit video! I loved it... a better way to use scope (one can be animation player/tree). But I'm looking forward implementing it... Also it would be great if you can implement same thing on a Mixamo 3d rigged character(rather than on a capsule)!!! But I've followed your tutorial and I love them
@CodeWithTom
@CodeWithTom 4 года назад
Thank you Ish. Yes there are several ways to implement scoping, however AnimationPlayer isn't great for dynamic animations, so with this approach you can define a different scoped position for each individual weapon.
@ishkapoor7931
@ishkapoor7931 4 года назад
@@CodeWithTom Yes you're right. thank you for teaching this. This works much better than what I used earlier.
@samuelecalugi7975
@samuelecalugi7975 4 года назад
I love this series! Hope to see new video!
@danylbekhoucha6180
@danylbekhoucha6180 4 года назад
Nice tutorial. The only issue with the weapon in another viewpoint is that it can't receive the lighting and reflect the environment, this can be very annoying in the interior with contrasted lighting with omni lights. I haven't found a technique for that.
@garbaj
@garbaj 3 года назад
@@Zorochase Hi, I'm having similar issues. I've tried enabling the visual instance layers for the gun but it doesn't seem to do anything. The lighting still looks strange and doesn't have any of my worldenvironment adjustments (like glow). Any idea what I'm missing?
@garbaj
@garbaj 3 года назад
Hey Tom, have you found a fix to the lighting issue with viewports? My gun ends up with strange looking lighting compared to the rest of the world and it doesn't share the adjustments that I've made in the WorldEnvironment node (like glow and ambient light). I've tried enabling the gun's visual instance layer in my light nodes, but it doesn't seem to do anything. Let me know if you have any insight.
@973sandman
@973sandman 3 года назад
I was wondering the same thing, in the video you can clearly see that once the render layer changes, the weapon no longer receives lights or reflections. Besides those it would be interesting to test the shadows
@greatvaluehokage139
@greatvaluehokage139 3 года назад
Yoooooooooooo it's Garbaj!!!
@dradex9562
@dradex9562 2 года назад
big fan
@phoxpsy7236
@phoxpsy7236 2 года назад
see even celebs need help sometimes RESPECT+ to bad tom thinks so highly of himself he can reply. >.>
@kiloalpha1067
@kiloalpha1067 2 года назад
@@phoxpsy7236 maybe he just doesn't have time
@DerkJanSpeelman
@DerkJanSpeelman 2 года назад
nice video! Couldnt you do an animation instead of having 2 position to interpolate from when ads?
@Simplisti.
@Simplisti. 4 года назад
But uh, how do we make it so we can get killed by the AI?
@asdaaaaaaaaaaaaaasd
@asdaaaaaaaaaaaaaasd 3 года назад
this is perfectly helpful
@mm552
@mm552 Год назад
I've had the most bizzare issue whilst setting up the whole viewport thing, after I added the script to the viewport container's camera when I run the game I can only see the weapon and the sky with nothing else visible, all the things in the world are on Layer 1, the Player Camera is set to only 2 disabled, Viewport Camera to everything but 2, and the weapon is also 2.
@bity-bite
@bity-bite 4 года назад
12:00 You can save three lines of code by typing "onready var Camera: Camera = $"../Camera"?
@CodeWithTom
@CodeWithTom 4 года назад
You certainly can and that's a totally valid approach. I am leaning more towards exported NodePaths nowadays though as I think it makes your scripts more robust. Scripts can easily break if you change your scene heirarchy when using the $ syntax.
@tsk5328
@tsk5328 3 года назад
@@CodeWithTom sorry very silly question but Im very bad at organizing my projects and always end up moving things around later. if a parent script with the node path method is moved will the child scripts still function normally? (I'm scared of testig it as I have broken every project I've ever started by moving things and this tutorial project is currently my only working one)
@CitroenGames
@CitroenGames 4 года назад
i really love godot i still going to use unreal becuse i have to finish a game first. but this engine is really easy and thank you for good quality tutorial!
@GlitchedK
@GlitchedK Год назад
Amazing tutorial but I have a few questions, how would I add animations to the guns like reload, fire, equip, and unequip? How would I add a weapon inventory system? And how would I add limited ammo?
@hshsjsjsj506
@hshsjsjsj506 4 года назад
Yoooooo the part 5 im waiting haha
@begamalls
@begamalls 2 года назад
Part 6 please
@suretmeyenateistoc4252
@suretmeyenateistoc4252 2 года назад
thanks for video
@leeramer171
@leeramer171 3 года назад
Hi Tom, I was wondering if you have tried your FPS as a multiplayer. I am having trouble assigning my second client to my player 2 kinematic body. apparently when a both clients connect they take the default of Ply1 viewpoint, but Client 2 sees Ply2 in front and can control them while client 1 can control itself normally. Any ideas on how to assign ply2 to client 2?
@tsk5328
@tsk5328 3 года назад
did you ever manage to figure this out? it might have to do with the setting up of the camera path, I saw in the comments thread of one of the earlier videos in this series that someone mention a problem where all the enemies would turn red when only one spotted the player, even if only that one was persuing. in that instance, the fix was to make sure each instance of the enemy object was handled as a unique entity, that's how they fixed their problem. I hope this helps with your issue. you can find the convo in the chat of video 3 or 4 (of this series) I think, the episode where he adds the enemy with the pursuit feature? you'll find it in the chat there (sorry can't remember the episodes name :-) side note, can other players see the gun on the guns layer in the second player's hand and if so, can player 2 see player 1's gun clipping through terrain even when player 1 sees no clipping?
@beepbeep4697
@beepbeep4697 3 года назад
Can someone help with Attempt to call function 'set_text' in base 'null instance' on a null instance.
@jlebrech
@jlebrech 2 года назад
does the separate gun rendering accidentally show enemy guns?
@jonus5331
@jonus5331 3 года назад
Help, I have some problem with godot, despite my scirpts being right there are not working, when i try to run it nothing happens it is acting like there is no scrpits.
@nbk4191
@nbk4191 4 года назад
Finally part 5 and the part 6 where?
@rainxcat7753
@rainxcat7753 4 года назад
This is awesome :D
@cmds.learning7426
@cmds.learning7426 4 года назад
cool tom! i wait for this for ....how long?
@CodeWithTom
@CodeWithTom 4 года назад
Glad you liked it :)
@Shortclipsyt9
@Shortclipsyt9 4 года назад
Nice 👍
@CodeWithTom
@CodeWithTom 4 года назад
Thank you!
@CROXoDyLE
@CROXoDyLE Год назад
If anyone knows how to make the raycast follow the weapon please provide the code and or link to a resource for this. I would like the raycast to follow the weapon (instead of the main camera) so that when you shoot, the bullet hits a different spot when aimed in/out. The raycast from the main camera works but does not have the game feel I am going for. (If you aim in/out the raycast hits the same position) When you simply attach the raycast as a child of the weapon it kinda works BUT when it gets into the “weapon clipping” range it does not have the same position as the weapon rendered from the weapon camera. If anyone knows how to have the raycast follow the weapon when ads in/out WHILE STILL rendering the weapon on a different camera please help me out!! Much appreciated!
@panskibinski
@panskibinski 3 года назад
This tutorial alone is quite nice but as I fallow all parts now it messes with rendering switch from previous tutorials
@RedHeadphone
@RedHeadphone 4 года назад
So I have a pickup system so I am switching layer visual instance of mesh one thing I noticed was when viewport shows the gun the gun colouring changes it becomes brighter how can I solve it this bug stands out bad
@firedogex
@firedogex 3 года назад
The weapons object download link
@nathangames8744
@nathangames8744 3 года назад
How could you make the enemies kill you in the game
@lizipancake
@lizipancake 3 года назад
When I tried running the code after adding "raycast = get_node(raycast_path)" The debug view immediately crashes, opens Shotgun.gd, and the debugger outputs "Invalid set index 'cast_to' (on base: 'null instance') with value of type 'Vector3'." Any idea why?
@tsk5328
@tsk5328 3 года назад
Hi total noob here, but.... I think you forgot to remove shotgun.gd from the old weapon node? as shout gun script should not be active at this point in the vido. [edit] I also copied the shotgun script contents into my weapon script but just because I wanted to set range more easly during testing, still it might help.
@lizipancake
@lizipancake 3 года назад
@@tsk5328 Thank you, I will definitely look into this, I will probably edit with the results when I do afterwards
@apoorvpandey3D
@apoorvpandey3D 3 года назад
How to do weapon recoil?
@fabclippers2632
@fabclippers2632 3 года назад
yes yes
@fabclippers2632
@fabclippers2632 3 года назад
yes yes yes
@tsk5328
@tsk5328 3 года назад
Hi, total noob here, but I saw how they did it in the doom clone demo project avaleble from Godot assetlib, its basically an animation that plays after (or as part of) the fire animation, Earlier in this chat tom has a chat with someone about the power and drawbacks of the animation tree. here's a really cool video about ways to use animation tree ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-OUvpe9FMkLI.html
@KyaKarogeJaanKe54
@KyaKarogeJaanKe54 3 года назад
is using godot worth?
@fragarena9910
@fragarena9910 4 года назад
Love it
@unworthy.potato
@unworthy.potato 3 года назад
Imagine what you could do with f5!
@JuanCarlos-qd1wk
@JuanCarlos-qd1wk 4 года назад
I love you are a crack
@cinomontague
@cinomontague 4 года назад
This vid was so bad ass
@seemarajput779
@seemarajput779 4 года назад
plzz bro plzz plzz male a tutorial on eqiuping different wepons as you said in video plzz plzz this topic is rushing now, no one had made a video a lot of people need this including me plzz make thia video.... also, can pickup gun from ground ....
@volayiwola15
@volayiwola15 2 года назад
wow
@unworthy.potato
@unworthy.potato 3 года назад
18:04
@matrixchronic8542
@matrixchronic8542 4 года назад
Could you try and make a battle royale tuturial on godot plz
@froggames4922
@froggames4922 4 года назад
can you tell me how to make a multiplayer fps
@masterox2
@masterox2 4 года назад
First😅
@matrixchronic8542
@matrixchronic8542 4 года назад
Free link to asset maker because my friend chalenged me to make a fps without paying for anything
@tsk5328
@tsk5328 3 года назад
did you find one? if you did, could you share a link? else try blender (3d) and Krita (2d)
@alphastyx2
@alphastyx2 4 года назад
100th view
Далее
I Used Godot For 100 Hours, Here’s What I Learned
35:09
Avaz Oxun - 10 yillik yubiley konsert dasturi 2023
2:52:33
УГАДАЙ ЕДУ ПО ЭМОДЗИ! #shorts
00:57
Просмотров 152 тыс.
Weapon Switching In Godot - FPS Tutorial
14:41
Просмотров 33 тыс.
Why 'Aim Down Sights' Is A Bad Mechanic
19:51
Просмотров 708 тыс.
INVENTORY & ITEM SYSTEM in Godot
50:30
Просмотров 56 тыс.
How to Make a Good 2D Camera
11:38
Просмотров 399 тыс.
They made a game about philosophy...
23:19
Просмотров 458 тыс.
Godot FPS Tutorial - Projectile Weapons
14:49
Просмотров 52 тыс.
Optimizing my Game so it Runs on a Potato
19:02
Просмотров 553 тыс.
Avaz Oxun - 10 yillik yubiley konsert dasturi 2023
2:52:33