@@CodeWithTom please make an animation rig and animation node editor tutorial next
@DonLeeelbow6672 жыл бұрын
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!
@HasanRx74 жыл бұрын
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 KZbin and liked to share it with you.
@vickylance4 жыл бұрын
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
@CodeWithTom4 жыл бұрын
@@vickylance yeah absolutely. If you use a single camera and mess around with the FOV the weapon starts to look very strange 😁
@973sandman3 жыл бұрын
@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.
@HasanRx73 жыл бұрын
@@973sandman Your welcome. Glad it helped 😁
@973sandman3 жыл бұрын
@@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.
@5minutemovies9774 жыл бұрын
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 !
@mottely4 жыл бұрын
Don't usually comment on videos but these tutorials have been extraordinarily helpful. Looking forward to more, thanks for all the information!
@midasmyad4 жыл бұрын
great! banging it out without too much blah blah. All the info i need and to the point. This is why I watch you!
@CodeWithTom4 жыл бұрын
Thanks Myriad, really appreciate it! :)
@supriyakhanra90684 жыл бұрын
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
@techofhappiness3954 жыл бұрын
Really Awesome Tutorial
@CodeWithTom4 жыл бұрын
Glad you liked it!
@tonalegoni64044 жыл бұрын
Love ur tutorials, they're amazing and simple. Thanks a lot for making me start loving godot. ready for part6 👍👍👍
@AgnisNeZvers4 жыл бұрын
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.
@RedHeadphone4 жыл бұрын
I was stuck at this thanks now I m all motivated
@anime_gamer95674 жыл бұрын
Hello Code with Tom Please give us a 6th part
@Gredran2 жыл бұрын
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!
@liveshaitan90863 жыл бұрын
it is the best with the help of your tutorials I had make a fps character game in godot
@baileymckee17003 жыл бұрын
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
@calebpeters44733 жыл бұрын
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?
@evanarmont2 жыл бұрын
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
@garbaj4 жыл бұрын
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.
@973sandman3 жыл бұрын
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
@greatvaluehokage1393 жыл бұрын
Yoooooooooooo it's Garbaj!!!
@dradex95622 жыл бұрын
big fan
@phoxpsy72362 жыл бұрын
see even celebs need help sometimes RESPECT+ to bad tom thinks so highly of himself he can reply. >.>
@kiloalpha10672 жыл бұрын
@@phoxpsy7236 maybe he just doesn't have time
@jojofansiraq9984 жыл бұрын
I love your FPS tutorial, hope to see the next part 💥💪
@danielhadad49114 жыл бұрын
Thank you a million times, this series was amazing! I'd love to see anything you come up with for the next tutorials.
@NOPerative4 жыл бұрын
Incredible work.
@CodeWithTom4 жыл бұрын
Thanks Robert I really appreciate it!
@तंत्र3 жыл бұрын
Amazing tutorial.... Loved it...more godot content would be really nice....
@danylbekhoucha61804 жыл бұрын
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.
@garbaj4 жыл бұрын
@@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?
@bity-bite4 жыл бұрын
12:00 You can save three lines of code by typing "onready var Camera: Camera = $"../Camera"?
@CodeWithTom4 жыл бұрын
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.
@tsk53283 жыл бұрын
@@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)
@ishkapoor79314 жыл бұрын
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
@CodeWithTom4 жыл бұрын
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.
@ishkapoor79314 жыл бұрын
@@CodeWithTom Yes you're right. thank you for teaching this. This works much better than what I used earlier.
@DerkJanSpeelman2 жыл бұрын
nice video! Couldnt you do an animation instead of having 2 position to interpolate from when ads?
@Simplisti.4 жыл бұрын
But uh, how do we make it so we can get killed by the AI?
@leeramer1713 жыл бұрын
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?
@tsk53283 жыл бұрын
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?
@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.
@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?
@samuelecalugi79754 жыл бұрын
I love this series! Hope to see new video!
@asdaaaaaaaaaaaaaasd3 жыл бұрын
this is perfectly helpful
@CitroenGames4 жыл бұрын
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!
@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!
@jlebrech2 жыл бұрын
does the separate gun rendering accidentally show enemy guns?
@beepbeep46973 жыл бұрын
Can someone help with Attempt to call function 'set_text' in base 'null instance' on a null instance.
@Shortclipsyt94 жыл бұрын
Nice 👍
@CodeWithTom4 жыл бұрын
Thank you!
@hshsjsjsj5064 жыл бұрын
Yoooooo the part 5 im waiting haha
@suretmeyenateistoc42522 жыл бұрын
thanks for video
@jonus53313 жыл бұрын
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.
@rainxcat77534 жыл бұрын
This is awesome :D
@cmds.learning74264 жыл бұрын
cool tom! i wait for this for ....how long?
@CodeWithTom4 жыл бұрын
Glad you liked it :)
@begamalls2 жыл бұрын
Part 6 please
@RedHeadphone4 жыл бұрын
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
@seemarajput7794 жыл бұрын
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 ....
@nbk41914 жыл бұрын
Finally part 5 and the part 6 where?
@panskibinski3 жыл бұрын
This tutorial alone is quite nice but as I fallow all parts now it messes with rendering switch from previous tutorials
@lizipancake3 жыл бұрын
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?
@tsk53283 жыл бұрын
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.
@lizipancake3 жыл бұрын
@@tsk5328 Thank you, I will definitely look into this, I will probably edit with the results when I do afterwards
@unworthy.potato3 жыл бұрын
Imagine what you could do with f5!
@fragarena99104 жыл бұрын
Love it
@apoorvpandey3D3 жыл бұрын
How to do weapon recoil?
@fabclippers26323 жыл бұрын
yes yes
@fabclippers26323 жыл бұрын
yes yes yes
@tsk53283 жыл бұрын
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 kzbin.info/www/bejne/hYbZoZhve7Kegqs
@nathangames87443 жыл бұрын
How could you make the enemies kill you in the game
@JuanCarlos-qd1wk4 жыл бұрын
I love you are a crack
@firedogex3 жыл бұрын
The weapons object download link
@cinomontague4 жыл бұрын
This vid was so bad ass
@KyaKarogeJaanKe543 жыл бұрын
is using godot worth?
@volayiwola152 жыл бұрын
wow
@unworthy.potato3 жыл бұрын
18:04
@matrixchronic85424 жыл бұрын
Could you try and make a battle royale tuturial on godot plz
@froggames49224 жыл бұрын
can you tell me how to make a multiplayer fps
@masterox24 жыл бұрын
First😅
@alphastyx24 жыл бұрын
100th view
@matrixchronic85424 жыл бұрын
Free link to asset maker because my friend chalenged me to make a fps without paying for anything
@tsk53283 жыл бұрын
did you find one? if you did, could you share a link? else try blender (3d) and Krita (2d)