How To Code An FPS Controller In Godot 4

  Рет қаралды 4,527

Nagi

Nagi

7 ай бұрын

Learn how to create a basic FPS controller with crouching (Yeah I forgot about it last time lol) in Godot 4.
•Links:
Link to the project:
github.com/nagidev/godot-tuto...
If you have questions, comment them down below.
If you enjoyed the video, drink apple juice.
Do you want to support my content?
ko-fi.com/nagidev

Пікірлер: 30
@NagiDev
@NagiDev 6 ай бұрын
In case you're wondering, yes I made the player (and everything else) more than double the size of real world proportion. That's because the rendering looks really pretty with it. If you want, you can always downscale the player's CollisionShape, Head position, TopCast size & position, as well as the export values in the player script.
@NagiDev
@NagiDev 6 ай бұрын
KZbin please let me add links to my projects in the description! I'll post regularly from now on. I pwomise!!
@meezi2987
@meezi2987 6 ай бұрын
the best youtuber is back🎉, please make tutorials on valorant skills like before😊
@slimebuck
@slimebuck 6 ай бұрын
lol I like your intro, at first I rolled my eyes and was like "omfg... i dont want a life story, GET ON WITH IT!!" then your joke hit and I was like "lol"
@mediocreatbest1269
@mediocreatbest1269 14 күн бұрын
This video was super helpful and funny! Thank you for this! Can't wait to see your other projects!
@ruumroom.
@ruumroom. 6 ай бұрын
great video GOOD TO SEE U BACK HERE 😜 will be following this tutorial when i start godot 4
@Wisdawms
@Wisdawms 6 ай бұрын
Really helpful and straightforward, thank you and please keep making these Godot tutorials if you can!
@saeedserwan
@saeedserwan 5 ай бұрын
I've seen may people do a FPS control scheme and yours is honestly my favourite, especially the way you used the shapecast node! again appreciate the upload!!
@darksouls3pyromancer
@darksouls3pyromancer 2 ай бұрын
Assuming Godot physics is based on SI-Units 9.8 is literally realistic gravity. A lot of games use a higher gravity than real life and its a good tutorial but that comment threw me a curve ball.
@NagiDev
@NagiDev 2 ай бұрын
At the end, I guess it was just a personal preference and is totally optional for the tutorial.
@vRV379
@vRV379 5 ай бұрын
I liked your sponsorship, like and subscribe done🎉❤
@shinjukubliss
@shinjukubliss 4 ай бұрын
Just a heads up for anyone following who wants to support granular controller movement: just remove the .normalized() from the direction variable. This will not break any pre-existing keyboard movement, but does allow finer control over controller stick movement if you define a stick in your project's inputs.
@gwrgrw4077
@gwrgrw4077 5 ай бұрын
I hope you update your dialogue and interact mechanics next (with a focus on multiple characters' dialogue and whatnot)!
@GlamrockGabson
@GlamrockGabson 3 ай бұрын
I actually finally made a 3d controller thanks you so much lmao
@M_SWasUnavailable
@M_SWasUnavailable 6 ай бұрын
Grappling Gun Tutorial pls and lol rip your channel you better don't disappear again by any chance and I really love your tutorials and videos overall they are interesting enjoyable and understandable
@slimebuck
@slimebuck 6 ай бұрын
ty for the idea of grappling gun. I will make one in my godot game now
@have-vibecheck
@have-vibecheck 2 ай бұрын
You're great, man. Accept my thanks!!
@NagiDev
@NagiDev 2 ай бұрын
I'm glad I could help!
@Ptiteigne
@Ptiteigne 6 ай бұрын
It gets to the point, and it's fun to watch :) Thanks !
@_mustafaMH
@_mustafaMH 6 ай бұрын
Great tutorial Can you make one about sliding
@NagiDev
@NagiDev 6 ай бұрын
Sure, I'll try to make one soon, however, I would also recommend you to give it a go and attempt to make your own sliding mechanic. From my experience, experimenting is one of the best ways to learn gamedev and become less dependent on tutorials for the most part. (Don't worry if it doesn't work out, I'll make a tutorial anyway :P)
@kingdarkmaster9893
@kingdarkmaster9893 2 ай бұрын
I have problem after I added crouch_transition , whenever I crouch i lags( come up and does the same animation again) pls help
@NagiDev
@NagiDev 2 ай бұрын
Compare the code in the repo (from the link in the description) with your code and see if there are any differences?
@hemapoojari630
@hemapoojari630 Ай бұрын
I have a problem when i had finishes the crouch system and added the input section in the process as similiar to you it was not working and when run i was already being crouch and cannot uncrouch PLEASE HELP!!!
@NagiDev
@NagiDev Ай бұрын
Hey, try commenting out parts of your code to find out which line might ne causing the issue. Additionally check if you're not facing the same crouch issue I mentioned in the fall damage video.
@johannjomy8764
@johannjomy8764 Ай бұрын
whenever I move with a different camera direction it doesn't move relative to where i'm facing
@NagiDev
@NagiDev Ай бұрын
That is expected. If you're trying to face the player in a different direction at the start of a scene, make sure to set look_rot to the player's current rotation.
@jon2478
@jon2478 6 ай бұрын
How was 1:39-1:41 accomplished? Struggling here lol.
@NagiDev
@NagiDev 6 ай бұрын
Hi! When you create the script using the movement template (which is done by default if you're following along this tutorial), you will have the gravity code already set up. I did move around the condition statements and indentation to allow for adding crouching logic later. All you need to do is write the code just the way I wrote it at 1:41 paying attention to the indentation used. Hope it helps!
@shreetejjadhav3031
@shreetejjadhav3031 27 күн бұрын
can you make a sliding tutorial
How To Code Player Health & Fall Damage In Godot 4
13:00
I Optimised My Game Engine Up To 12000 FPS
11:58
Vercidium
Рет қаралды 478 М.
Giving 1000 Phones Away
00:18
MrBeast
Рет қаралды 27 МЛН
CAN YOU HELP ME? (ROAD TO 100 MLN!) #shorts
00:26
PANDA BOI
Рет қаралды 36 МЛН
Cat story: from hate to love! 😻 #cat #cute #kitten
00:40
Stocat
Рет қаралды 13 МЛН
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 66 МЛН
Why 'Aim Down Sights' Is A Bad Mechanic
19:51
ShreddedNerd
Рет қаралды 701 М.
Godot 4 Ledge Climbing tutorial
7:23
Brokencircuit
Рет қаралды 8 М.
I Made A Difficult Game About Climbing
15:04
Pontypants
Рет қаралды 1,9 МЛН
These Optical Illusions Are Actually Playable
17:25
ByteBlox
Рет қаралды 104 М.
MORE VFX Shader Techniques ft. Godot
8:43
onetupthree
Рет қаралды 17 М.
How to Add Interaction in Godot 3
8:06
Nagi
Рет қаралды 34 М.
The DEFINITIVE FPS Tutorial for Godot 4.X (FULL COURSE)
2:41:46
Chaff Games
Рет қаралды 37 М.
Giving 1000 Phones Away
00:18
MrBeast
Рет қаралды 27 МЛН