How I Made a Satisfying FPS Controller

  Рет қаралды 129,537

Lejynn

Lejynn

Күн бұрын

In this video, I build a satisfying FPS Controller with procedural animations.
Starting in 2022, I will learn how to become a Unity game developer. My first step on this journey is to build an FPS Controller that feels satisfying and well polished. The controller will need animations that respond to the player's movement to give immersive gameplay. I also will need to learn how to share my progress on KZbin.
----- ⭐ Use this Playlist for the tutorials I used in this video ⭐ -----
• FPS Controller Tutorials
---- Tutorials I referenced ----
- FIRST PERSON MOVEMENT in Unity - FPS Controller
- Unity 3D Multiplayer FPS Tutorial 06 - Weapon Sway
- FPS Tutorial Series #15 - Rotational / Tilt Sway - Unity 2019
- How to make ALL kinds of GUNS with just ONE script! (Unity3d tutorial)
- Weapon Recoil Script - How To Make Procedural Recoil In Unity
- Realistic Sniper Shooting: Bullet Drop - Unity Tutorial #1
- Unity Create a Game Series (E16. weapon effects) (Muzzle Flash)
- PAUSE MENU in Unity
---- Low Poly FPS Weapons Pack ----
assetstore.unity.com/packages...
VIDEO CHAPTERS
00:00 Intro
00:22 Player Movements
02:05 Procedural Gun Movement Animations
03:29 Procedural Shooting Animations
04:10 Outro

Пікірлер: 266
@Lejynn
@Lejynn 2 жыл бұрын
All the tutorials I used are in this playlist. Thanks for watching! :) kzbin.info/aero/PLrMEhC9sAD1ya9RFdnjFUL1foVlZjRkE7
@SuperGamePlayOfficial
@SuperGamePlayOfficial 2 жыл бұрын
Thanks yo should do that more often
@myAutoGen
@myAutoGen 2 жыл бұрын
none of these tutorials address adding sounds e.g. footsteps to the character controller
@twist474
@twist474 Жыл бұрын
@@myAutoGen i think thats cause he added that stuff himself
@SageSLAMS
@SageSLAMS 11 ай бұрын
I haven't watched the playlist yet, but does it show how to ad ADS
@diligencehumility6971
@diligencehumility6971 2 жыл бұрын
You made more progress on your first project than I did my first year with Unity
@Lejynn
@Lejynn 2 жыл бұрын
Everyone learns at their own pace. I spent a lot of time on the project. But the videos makes it look really fast.
@kimathidev4937
@kimathidev4937 Жыл бұрын
in all fairness, he searched everything up and it's a lot better to actually learn how to implement things urself
@StewartW12
@StewartW12 2 жыл бұрын
Happy to be in the first 1k subscribers. I love watching game developer journeys, and the quality of your two videos so far is on point. Keep it up!
@Lejynn
@Lejynn 2 жыл бұрын
You made it just in time! :) Thanks, I definitely have a lot more ideas / videos to come. I really appreciate the sub.
@noobatron9046
@noobatron9046 2 жыл бұрын
The quality and the time put in this video are very underrated, but only for now. If you keep it that way and eventually improve it even more you are gonna be rewarded in not so long time away. I can't believe this well made video came from a channel with only 250 subs, very good job i subbed
@Lejynn
@Lejynn 2 жыл бұрын
Thanks NoobatroN! I am stoked that people are saying my content is underrated. It gives me hope for the future and motivates me to continue the grind. Also thanks for subbing. The channel is growing at a decent pace so it'll be cool to look back one day and see where people subbed at.
@blutoh4181
@blutoh4181 2 жыл бұрын
@@Lejynn your editing is great man! The flow of the video is super nice, keep it up. You are definitely very underrated
@Lejynn
@Lejynn 2 жыл бұрын
@@blutoh4181 Thanks, I am really glad people liked the flow. This video was my intro to game dev and devlogs, but now I plan to make more like this. :)
@KingKaleb77
@KingKaleb77 Жыл бұрын
As someone who’s tried to figure out unity just by jumping in and messing with it, I completely understand the need to watch tutorials. I like that you showed which tutorials you followed
@DVL-yq3xo
@DVL-yq3xo Жыл бұрын
not only is your game dev skills admirable. your video editing skills are also off the charts. subbed
@mindurownbussines
@mindurownbussines 2 жыл бұрын
Congrats on your first video and your first attempt on fps games. I can see this channel grow substantially in the coming years. keep it comin
@Lejynn
@Lejynn 2 жыл бұрын
Thanks Hosein, I am very excited to see where this journey takes me. :)
@codename_name3521
@codename_name3521 2 жыл бұрын
YOU ARE THE GOAT BRO. you really inspire me to work simple to get a great game going. thanks alot for helping me get through the pain and suffering of programing :)
@Lejynn
@Lejynn 2 жыл бұрын
YOU ARE THE GOAT BRO. These comments help keep me motivated on the next project. Definitely keep me updated on your progress. Starting on these small projects is the way to go. Good luck!
@RealRenixGaming
@RealRenixGaming 2 жыл бұрын
This is awesome 🤗
@BuvesaGameDevelopment
@BuvesaGameDevelopment 2 жыл бұрын
Very nice devlogs! I like the way you progress and advance in this project. Congrats with the 1000 subs.
@Lejynn
@Lejynn 2 жыл бұрын
Thank you! I appreciate it. :D
@BILGI_PASA
@BILGI_PASA Жыл бұрын
Thank you for the video, I hope the video playlist that you shared in the description helps me.
@Lejynn
@Lejynn Жыл бұрын
You're welcome! I hope the playlist helps you too. Good luck.
@skytrymotion
@skytrymotion 2 жыл бұрын
I just saw this video and I'm really surprised. I started GameDev not long ago and Progress is going slow. So after I watched this video I must say you have talent. Your editing skills are great, your learning curve looks great. Everything looks great. Keep it up! Sorry for my bad england.
@Lejynn
@Lejynn 2 жыл бұрын
Thanks, SkytryMotion! I do have a little advantage. I am a full-time software engineer so I have a lot of coding experience. I just needed to learn the game dev side of it. Your English is pretty good. Game dev takes a lot of time, so keep at it as well!
@pygraft5442
@pygraft5442 Жыл бұрын
You have one of the best content i have ever seen....Thank you for linking the playlist..
@Lejynn
@Lejynn Жыл бұрын
Thanks! You're very welcome.
@feroznaeem440
@feroznaeem440 2 жыл бұрын
fantastic video man! Was actully really intrested in game dev/youtube as well watch some bracky videos but lost motivation all together. Really hope you continue doing this and can't wait for longer vidoes!
@Lejynn
@Lejynn 2 жыл бұрын
Thanks Feroz! I hope you find motivation again for game dev / KZbin. I am currently working on my next video now. I hope to get it out soon.
@hampusekedahl7309
@hampusekedahl7309 Жыл бұрын
awesome video, fantastic format love the transparency
@Lejynn
@Lejynn Жыл бұрын
Glad you liked it!
@Neon-_-
@Neon-_- 2 жыл бұрын
Thank you KZbin for recommending this to me
@Lejynn
@Lejynn 2 жыл бұрын
Thank you KZbin. :')
@ardizzzle
@ardizzzle 2 жыл бұрын
Dope video, I can see this channel blowing up big time. Keep the vids coming🙌🏽
@Lejynn
@Lejynn 2 жыл бұрын
Ayeeee, thanks bro! More coming soon. :)
@dglalperen
@dglalperen 2 жыл бұрын
Bro so nice, especially the way to proceed adding new Features 😁👍🏽
@Lejynn
@Lejynn 2 жыл бұрын
Thanks Alperen, I appreciate it. :)
@RealRenixGaming
@RealRenixGaming 2 жыл бұрын
Nice video I really like that you show the videos and gave other people a chance to also learn from them while also seeing the result, +1 sub.
@Lejynn
@Lejynn 2 жыл бұрын
That’s exactly what I was going for. I want to provide people a path to learn certain topics. I appreciate the sub! :)
@jmdotph
@jmdotph 2 жыл бұрын
I really appreciate your effort. Thank you so much for sharing this! GOAT
@Lejynn
@Lejynn 2 жыл бұрын
Thank you! Not a problem. I am glad this video helps people.
@the-guy-beyond-the-socket
@the-guy-beyond-the-socket 2 жыл бұрын
really nice start of something big, i hope you will continue making games!
@Lejynn
@Lejynn 2 жыл бұрын
Thank you so much! I definitely will be continuing this journey.
@simplelesson9385
@simplelesson9385 2 жыл бұрын
Hope he beat karlson!
@Valektrum
@Valektrum 2 жыл бұрын
Got your video in my recommended, and then realised you only had 65 subs! Great video, keep it up!
@Lejynn
@Lejynn 2 жыл бұрын
Wow, that's cool to hear! Thank's Valektrum. I am definitely a new channel, but I am glad to see so much positive feedback. I will definitely keep at it!
@collectthebread
@collectthebread 2 жыл бұрын
For a first video, very good editing!
@Lejynn
@Lejynn 2 жыл бұрын
Thanks Lukas! I am glad people are liking this editing style.
@DaysVFX
@DaysVFX Жыл бұрын
Awesome stuff, dude!
@Lejynn
@Lejynn Жыл бұрын
Thanks dude!
@polarisprog
@polarisprog 2 жыл бұрын
Looking good! Good luck on your game dev journey!
@Lejynn
@Lejynn 2 жыл бұрын
Thanks, I appreciate it! Good luck with yours too. You have a lot of good Roblox content.
@ultmatepotato
@ultmatepotato 2 жыл бұрын
I found this video while searching how to make recoil in unity lol. So many great resources in the disc. !!!! Thanks!
@Lejynn
@Lejynn 2 жыл бұрын
I am glad you found this! I spent a lot of time watching the different FPS tutorials on KZbin. So these were definitely the ones I found most useful.
@EnterpriseKnight
@EnterpriseKnight Жыл бұрын
hey man, keep posting. I'm also starting again since a lot of projects at my job require Unity. Wish you good luck!
@Lejynn
@Lejynn Жыл бұрын
That's awesome. Wish you good luck too!
@user-rm2gh2gc5f
@user-rm2gh2gc5f 2 жыл бұрын
Thanks a lot for the playlist!
@Lejynn
@Lejynn 2 жыл бұрын
No problem!
@RagingShadowX36
@RagingShadowX36 2 жыл бұрын
Bro ur a legend, Lejynn. Looking forward to more!
@Lejynn
@Lejynn 2 жыл бұрын
Yoooo, I am so glad you cracked the code. A lot of people say leee-jin. I am like no, it's legend without the d. xP
@notChocoMilk
@notChocoMilk 7 ай бұрын
the weapon sway is unironically really good
@kittycatmatt1909
@kittycatmatt1909 2 жыл бұрын
grate work bro keep it up im just learning too this help a lot
@Lejynn
@Lejynn 2 жыл бұрын
Thanks bro, I am glad this video is helping people. Good luck with your games!
@joakimlarsen05
@joakimlarsen05 Жыл бұрын
this is really inspiring for us gamedev noobs, great video!
@ggre55
@ggre55 Жыл бұрын
Keep learning bro u awesome
@Lejynn
@Lejynn Жыл бұрын
Thanks Bro! No u awesome.
@YS_Yousef
@YS_Yousef Жыл бұрын
Really nice for your first video
@Lejynn
@Lejynn Жыл бұрын
Thanks!
@YS_Yousef
@YS_Yousef Жыл бұрын
@@Lejynn ❤Welcome ❤
@saku-ra8813
@saku-ra8813 2 жыл бұрын
Good luck with the project :)!
@Lejynn
@Lejynn 2 жыл бұрын
Thanks Saku -ra •! :)
@aliwehbi7098
@aliwehbi7098 2 жыл бұрын
you are amazing, great job!
@Lejynn
@Lejynn 2 жыл бұрын
Thanks, I appreciate it! :D
@muhammadmuzaffarmuzaffar9401
@muhammadmuzaffarmuzaffar9401 2 жыл бұрын
Its tooo cool bro, i need part 2..
@Lejynn
@Lejynn 2 жыл бұрын
Thanks Bro, there will definitely be a part two. :)
@Tvtig
@Tvtig 2 жыл бұрын
Really cool video man :)
@Lejynn
@Lejynn 2 жыл бұрын
Thank you! :)
@AZASeraph
@AZASeraph Жыл бұрын
yaseen mujahid helped me a lot, i love his videos
@simplelesson9385
@simplelesson9385 2 жыл бұрын
OMG! I been looking forr these effects for years! U made a devlog and recommed video that i can make my mutiplayer fps which gonna be on steam soon!
@Lejynn
@Lejynn 2 жыл бұрын
That’s awesome! I hope this helps you finish your game. Let me know when it’s out. :)
@simplelesson9385
@simplelesson9385 2 жыл бұрын
@@Lejynn My channel is Kemne or Soggy Soup so look out for that!
@simplelesson9385
@simplelesson9385 2 жыл бұрын
@@Lejynn Also, u should make a discord server! Let me know when the server is out!
@Lejynn
@Lejynn 2 жыл бұрын
@@simplelesson9385For sure, I'll try to make one this weekend, then I will let you know.
@daniziognr9172
@daniziognr9172 2 жыл бұрын
Very nice man! I loved your learning process, I still do the same way today! haha
@Lejynn
@Lejynn 2 жыл бұрын
Thanks! Breaking down a project into smaller parts then learning each bit piece by piece is the way to go. :)
@mynil
@mynil 2 жыл бұрын
this looks very cool, god job at GAME FEEL
@Lejynn
@Lejynn 2 жыл бұрын
Thanks, Mynill! I appreciate it.
@Chocalatil
@Chocalatil 2 жыл бұрын
sweet! I've recently have started my game dev journey as well!
@Lejynn
@Lejynn 2 жыл бұрын
That's awesome! Good luck with your game dev journey. Glad to see so many people in the same boat.
@partible5803
@partible5803 2 жыл бұрын
editing is 10/10 man
@Lejynn
@Lejynn 2 жыл бұрын
Thank you!
@ba1inthh
@ba1inthh 2 жыл бұрын
A really god vide i want watch more! you're doing great!!!
@Lejynn
@Lejynn 2 жыл бұрын
Thanks, I appreciate it! I am already working on the next video. :)
@ba1inthh
@ba1inthh 2 жыл бұрын
@@Lejynn Im going to watchit first!
@Arab_GameDev
@Arab_GameDev 2 жыл бұрын
keep going bro
@Lejynn
@Lejynn 2 жыл бұрын
Definitely will! Just made a new upload today. :)
@WiresUp
@WiresUp 2 жыл бұрын
Awesome video
@Lejynn
@Lejynn 2 жыл бұрын
Thanks Wires Up!
@Benjabenjaaaa
@Benjabenjaaaa 2 жыл бұрын
GreatVideo!
@Lejynn
@Lejynn 2 жыл бұрын
Thank you! :)
@alwayssoftgames6636
@alwayssoftgames6636 Жыл бұрын
Would you ever think about making a full tutorial on your project? Like a full smooth fps controller tutorial? if you put all of these mechanics into one tutorial im sure it would help a lot of people so they dont have to bounce between abunch of peoples tutorials and they could just watch yours
@Lejynn
@Lejynn Жыл бұрын
Eventually I would like to make a tutorial on it but it would have to be a multipart series to fit all of the scripts.
@Unkown02863
@Unkown02863 2 жыл бұрын
Nice effort.
@Lejynn
@Lejynn 2 жыл бұрын
I appreciate it.
@panickal
@panickal 2 жыл бұрын
Nice!
@Lejynn
@Lejynn 2 жыл бұрын
Thanks!
@marcamooo
@marcamooo 2 жыл бұрын
this is pretty inspiring
@Lejynn
@Lejynn 2 жыл бұрын
Thanks!
@fizzplosion8772
@fizzplosion8772 Жыл бұрын
What videos did you use to get the post process/graphics and textures?
@maxyeditzz
@maxyeditzz 2 жыл бұрын
Amazing Video
@Lejynn
@Lejynn 2 жыл бұрын
I appreciate it. :)
@infinitelol2119
@infinitelol2119 2 жыл бұрын
this vid was actually fire
@Lejynn
@Lejynn 2 жыл бұрын
Appreciate it!
@metrocop9087
@metrocop9087 2 жыл бұрын
plai made really cool weapon sway tutorial
@Lejynn
@Lejynn 2 жыл бұрын
That was a really good tutorial! Thanks for sharing.
@user-nJ2up5mo4t
@user-nJ2up5mo4t Жыл бұрын
it looks good
@Lejynn
@Lejynn Жыл бұрын
Thanks Joseph!
@Kukatoo
@Kukatoo 6 ай бұрын
how did you create that low-poly mountain sky box? is it a 360 degree render saved as a high res texture?
@dejanferic3393
@dejanferic3393 Жыл бұрын
Amazing video Lejynn! Could you tell me how to aim and shoot my gun when I am ADS? I have a animation ready for when aiming but don't know how to hook it. Cheers!
@filipmadzia
@filipmadzia 2 жыл бұрын
Really nice video, subbed immediately
@Lejynn
@Lejynn 2 жыл бұрын
You're a real one! :')
@stuffedmannequin
@stuffedmannequin Жыл бұрын
Hi, I'm having a problem. If I made the gun a parent to the camera within the FPS controller, the gun becomes severely warped whenever I aim up and down. Do you know what the issue is?
@katakuridervierte5409
@katakuridervierte5409 2 жыл бұрын
Its cool to see someone who is on the level you are. We can see how you improve...its sick, are you looking for a co worker? I would love to help :) I dont have that much experience but i can learn it
@Lejynn
@Lejynn 2 жыл бұрын
Thanks! Right now I am just making small projects on the side. But if I ever start an indie game dev company, I will let you know. :)
@echogamer4372
@echogamer4372 2 жыл бұрын
pretty nice
@Lejynn
@Lejynn 2 жыл бұрын
Thanks!
@dumbassassin8895
@dumbassassin8895 2 жыл бұрын
Hi! this is a very nice video and it's great that you put the links to the tutorials. I have a question though, I'm still confused about character controller and rigidbody controllers, can you only work with one for your game? or can we work with both of them? i want to implement sliding and stuff like wallrun in my games but I'm having difficulties choosing what tutorials to focus on lol.
@Lejynn
@Lejynn 2 жыл бұрын
Hi Dumb Assassin, I haven't worked with sliding and wall running but what I think you're looking for is more of the rigidbody approach. You would use a rigidbody controller for when you want your character movements to be physics-based (i.e. your wall-running and sliding). The character controller is good if you're just doing regular fps movements (i.e. walking around, jumping, etc). You could use both methods if you have a script to disable your character controller and enable your rigidbody controller when you're doing your physics-based movements. But you could just use a rigidbody entirely. Best of luck! There are a lot of tutorials on this topic. Not sure how soon, but one day I will definitely do a devlog on this type of movement.
@dumbassassin8895
@dumbassassin8895 2 жыл бұрын
@@Lejynn Thanks! yeah i guess i'll just start off with a basic game lol and put aside advanced movements later. Best of luck to you as well!
@ryanlee7083
@ryanlee7083 2 жыл бұрын
Hey! Love the video, quick question, What was your technique for the mountains in the background? Any resources/tips would be greatly appreciated!
@Lejynn
@Lejynn 2 жыл бұрын
Hey! Thanks for watching. I wish I had a technique for those mountains but I got it from the “Synty Nature Pack” in the asset store. There are a lot of low poly mountain tutorials on KZbin if you wanted to try to make it yourself.
@ferkxncho
@ferkxncho 2 жыл бұрын
I will watch your career with great interest
@Lejynn
@Lejynn 2 жыл бұрын
Thanks, I’m excited to see what I’ll be able to build in the future! :)
@yazandalbah9942
@yazandalbah9942 2 жыл бұрын
Amazing video!! quick question, how did u make the weapon moves(bob) like when u move bobs forth and back and when u jump it moves so nicely. is there is a tutorial for that? Thanks in advanced!
@Lejynn
@Lejynn 2 жыл бұрын
Thanks! There's no tutorials for them, I wrote those myself after watching the two videos on weapon sway at 2:13. So here my bob script. using System.Collections; using System.Collections.Generic; using UnityEngine; public class BobAnimation : MonoBehaviour { public GunAim aim; public float magnitude; public float idleSpeed; public float walkSpeedMultiplier; public float walkSpeedMax; public float aimReduction; public PlayerMovement playerMovement; float sinY = 0f; float sinX = 0f; Vector3 lastPosition; private void Start() { lastPosition = transform.position; } void Update() { if (playerMovement.isGrounded) { float delta = Time.deltaTime * idleSpeed; float velocity = (lastPosition - transform.position).magnitude * walkSpeedMultiplier; delta += Mathf.Clamp(velocity, 0, walkSpeedMax); // Reduce by two so that the gun animation is more U shaped sinX += delta / 2; sinY += delta; sinX %= Mathf.PI * 2; sinY %= Mathf.PI * 2; float magnitude = this.aim.aiming ? this.magnitude / aimReduction : this.magnitude; transform.localPosition = Vector3.zero + Vector3.up * Mathf.Sin(sinY) * magnitude; transform.localPosition += Vector3.right * Mathf.Sin(sinX) * magnitude; } else { transform.localPosition = Vector3.Lerp(transform.localPosition, Vector3.zero, Time.deltaTime); } lastPosition = transform.position; } }
@Lejynn
@Lejynn 2 жыл бұрын
Here is my jump animation script. using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class JumpAnimation : MonoBehaviour { public PlayerMovement playerMovement; public GunAim gunAim; public float jumpIntensity; public float jumpSmooth; public float landingIntensity; public float landingSmooth; public float recoverySpeed; float impactForce = 0; void Update() { if (!playerMovement.isGrounded) { float yVelocity = playerMovement.controller.velocity.y; impactForce = -yVelocity * landingIntensity; if (gunAim.aiming) { yVelocity = Mathf.Max(yVelocity, 0); } transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.Euler(yVelocity * jumpIntensity, 0, 0), Time.deltaTime * jumpSmooth); } else if (playerMovement.isGrounded & impactForce >= 0) { transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.Euler(impactForce, 0, 0), Time.deltaTime * landingSmooth); impactForce -= recoverySpeed * Time.deltaTime; } else { transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.identity, Time.deltaTime * landingSmooth); } } }
@yazandalbah9942
@yazandalbah9942 2 жыл бұрын
@@Lejynn thanks man!!❤ that'll help me a lot
@letthatbe
@letthatbe 17 күн бұрын
Heyy what is the skybox? Great log btw
@TravisShelton2445
@TravisShelton2445 Жыл бұрын
Anyone know where the texture for the level came from?
@efaz6809
@efaz6809 2 жыл бұрын
lovely video. it would be great if you shows a tutorial on how you did all of this
@Lejynn
@Lejynn 2 жыл бұрын
Thanks Efaz! One day I plan on making tutorials. However, I did link all of the videos I watched so that you can follow those as well to get similar results.
@maikonjipa
@maikonjipa 2 жыл бұрын
Hey man nice video my name is Maikon and i from Brazil, very good.
@Lejynn
@Lejynn 2 жыл бұрын
Thanks Maikon! Brazil sounds like a super cool place. I hope to visit there one day.
@richfisherman3653
@richfisherman3653 2 жыл бұрын
I love it
@Lejynn
@Lejynn 2 жыл бұрын
Thank you 🙏🏽
@SuperMillwall
@SuperMillwall Ай бұрын
What video did you watch to implement the ADS (Aim Down Sight) of the gun? All the animations you done, were they all used by code rather than by animations?
@Lejynn
@Lejynn Ай бұрын
Yuhp! All of the animations for the gun were done procedurally through code. There was no tutorial for the ADS that I watched. I just lerped the gun between its resting position and its ADS position.
@Lejynn
@Lejynn Ай бұрын
using System.Collections; using System.Collections.Generic; using UnityEngine; public class GunAim : MonoBehaviour { public Vector3 aimOffset; // This represents where you want the gun to be when you're ADS public float sensitivity; // How fast you want the gun to switch between resting and ADS public bool aiming; void Update() { if (Input.GetMouseButtonDown(1)) { aiming = !aiming; } if (aiming) { transform.localPosition = Vector3.Lerp(transform.localPosition, aimOffset, Time.deltaTime * sensitivity); } else { transform.localPosition = Vector3.Lerp(transform.localPosition, Vector3.zero, Time.deltaTime * sensitivity); } } }
@SuperMillwall
@SuperMillwall Ай бұрын
Thank you mate. I keep coming back to your video to see how smoothly you made everything look, this is exactly what I want in my game but I can’t seem to animate whatsoever lol, this might be the better approach. I think I’m gonna end up buying the Low Poly Weapons Pack as well, it seems to have everything I need including the Red Dot Sight etc..
@staticplays1871
@staticplays1871 Жыл бұрын
This is a very good devlog of your game but I want to ask you a question is that how do you get so confident with unity that you can customize whatever the person is telling in the tutorial because I have a hard time customizing my own things despite looking at the API for answers
@SamDaK1ng28
@SamDaK1ng28 2 жыл бұрын
I have a question, why did you use the universal render pipeline and not the standard 3D version, are there differences and what would you recommend?
@Lejynn
@Lejynn 2 жыл бұрын
From my understanding, URP and HDRP are Unity's scriptable render pipelines. That means I need to use those pipelines if I want to use things like Shader Graph. They also have a few different post processing settings over the standard render pipeline. Since URP is supposed to be quicker than HDRP, I just always pick that one.
@alanarapoglu5136
@alanarapoglu5136 2 жыл бұрын
Hi Leynn, Just Saw Your Video And I Have A Question For You. Where Did You Find Those Muzzle Flash Effects?? By The Way Awesome Video!!! And Sorry For My Bad English
@Lejynn
@Lejynn 2 жыл бұрын
Thanks! I got the muzzle flash from the "Unity Create a Game Series (E16. weapon effects)" video in the description. :)
@TechTroveInc
@TechTroveInc 7 ай бұрын
how do i add similar auto gun sounds?
@Dug77
@Dug77 Жыл бұрын
see when i make games by watching videos and learning i'm trash and bad because it's not my code but when others do it it's cool and impressive it is super cool tho
@whysl
@whysl Ай бұрын
How do you make weapon sway and animations at the same time? I searched everywhere in internet, but i can't find the correct answer.
@justdev350
@justdev350 11 ай бұрын
do you know how i can add sounds?
@twist474
@twist474 Жыл бұрын
wow you have 4k subs now thats crazy
@Lejynn
@Lejynn Жыл бұрын
It’s crazy seeing the channel grow so much! What was the first number you remember seeing?
@twist474
@twist474 Жыл бұрын
@@Lejynn i only found your channel like 2 months ago but probably like 1k or 2k. also have you thought of making a discord server?
@Lejynn
@Lejynn Жыл бұрын
@@twist474 I’ve looked into it. I plan to create a Discord server when I have more time on my hands. Right now all of my spare time goes into the channel and it’s not very much.
@copperdevs
@copperdevs Жыл бұрын
nice
@Lejynn
@Lejynn Жыл бұрын
Thanks!
@copperdevs
@copperdevs Жыл бұрын
rewatching all theses videos because W videos
@googoo2.
@googoo2. 2 жыл бұрын
cool
@Lejynn
@Lejynn Жыл бұрын
Thanks!
@tbwentmia
@tbwentmia 2 сағат бұрын
how did you do the weapon bob?
@alwayssoftgames6636
@alwayssoftgames6636 Жыл бұрын
Whats the script for the gun to move up and down when your jumping/falling? Or how did you get that to work
@Lejynn
@Lejynn Жыл бұрын
I had a empty parent object on the gun that ran this script. public class JumpAnimation: MonoBehaviour { public PlayerMovement playerMovement; public GunAim gunAim; public float jumpIntensity; public float jumpSmooth; public float landingIntensity; public float landingSmooth; public float recoverySpeed; float impactForce = 0f; void Update() { if (!playerMovement.isGrounded) { float yVelocity = playerMovement.controller.velocity.y; impactForce = -yVelocity * landingIntensity; if (gunAim.aiming) { yVelocity = Mathf.Max(yVelocity, 0); } transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.Euler(yVelocity * jumpIntensity, 0, 0), Time.deltaTime * jumpSmooth); } else if (playerMovement.isGrounded & impactForce >= 0) { transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.Euler(impactForce, 0, 0), Time.deltaTime * landingSmooth); impactForce -= recoverySpeed * Time.deltaTime; } else { transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.identity, Time.deltaTime * landingSmooth); } } }
@voxelia
@voxelia Жыл бұрын
@@Lejynn Thank u soooooo much.
@bonnieboyang
@bonnieboyang Жыл бұрын
How did u make gun movement bobbing like when u jump the gun bobs
@Lejynn
@Lejynn Жыл бұрын
I created a script to track if the player is in the air and what player's Y-velocity is. Then based on that, I linearly interpolate (LERP) the rotation of the gun. xP
@mistikmcgameplays1066
@mistikmcgameplays1066 Жыл бұрын
You are cualified to be the next Brackeys
@Lejynn
@Lejynn Жыл бұрын
Wow, that's a really nice thing to say! It may be possible that I can help the game dev community in a big way once I find the time to create a lot more videos. But nobody can truly replace the great Brackeys.
@mistikmcgameplays1066
@mistikmcgameplays1066 Жыл бұрын
@@Lejynn true but still i havent found a youtube channel that explains things like he did
@Lejynn
@Lejynn Жыл бұрын
@@mistikmcgameplays1066 True, I am sad Brackeys retired before I got into game dev. But other channels that I like are Game Dev Guide, Code Monkey, and Tarodev.
@dukeyys7701
@dukeyys7701 Жыл бұрын
How do you aim in? I have pretty much the same setup as you all im trying to do now is aim in and im struggling to find a tutorial on how, do you think you'd make one?
@Lejynn
@Lejynn Жыл бұрын
I keep track of what position I want the gun to be when aiming. Then I switch between that position and the gun's original position. public class GunAim: MonoBehaviour { public Vector3 aimOffset; public float sensitivity; public bool aiming; // Update is called once per frame void Update() { if (Input.GetMouseButtonDown(1)) { aiming = !aiming; } if (aiming) { transform.localPosition = Vector3.Lerp(transform.localPosition, aimOffset, Time.deltaTime * sensitivity); } else { transform.localPosition = Vector3.Lerp(transform.localPosition, Vector3.zero, Time.deltaTime * sensitivity); } } }
@dukeyys7701
@dukeyys7701 Жыл бұрын
@@Lejynn Thank you so much, do you think you'll eventually turn this in to a game would be cool to see a episode series on it.
@madpancake9891
@madpancake9891 Жыл бұрын
Hello. In my opinion, the way of learning, by doing small projects, learning something and then scrapping it, instead of trying to create a fully fledged game is good. I mean, you won't create a good game in your first try. It's like trying to play soccer, by going on a soccer championship competition and hoping to win. The only issue is: keeping your motivation high, while doing so. My recommendation is: stick to fun things. Really, keep doing fun stuff. Think about games that you can make, that your friends will enjoy playing, and ask them to play your games. People playing your games will give you a lot of motivation and fun! I myself learned to code in Minecraft, by making servers for my friends all the time, it was actually only 3 of us, but even though, I was creating super detailed minigames, just to have better fun with my friends. While we were playing, I was making notes of things that are not working, or could be improved, and then after we were done playing, I was going straight into coding, because I was motivated SO MUCH by the fun time I had with friends. However, when giving your games to your friends, it's easy to expect them to say 'WOW! Such amazing details! I can definitely see all the small things you've done that you hope me to notice somehow!', when in reality, your friends won't notice 80% of the things you have done. They will often focus on the big picture, and you shouldn't get angry, or unmotivated by the fact they don't notice every single thing you've made and is obvious for you. Personally, I think that you can't fix a bad idea with great details and execution, but if the idea is good, you can make it AMAZING by adding a lot of depth and details to it. Even though people don't notice the details, they do feel the atmosphere it all creates, and they feel like they are playing a well-made game, not an amateur project!
@noisepipa
@noisepipa Жыл бұрын
Can anyone tell me how to add the tilt sway when the character is falling like he did? i've watched the tutorial and i still don't get it
@voxelia
@voxelia Жыл бұрын
me neither. help @Lejynn
@Lejynn
@Lejynn Жыл бұрын
I mainly just used the Y-Velocity of the player to linearly interpolate the gun rotation. Here's my script for the animation. using System.Collections; using System.Collections.Generic; using UnityEngine; [System.Serializable] public class JumpAnimation: MonoBehaviour { public PlayerMovement playerMovement; public GunAim gunAim; public float jumpIntensity; public float jumpSmooth; public float landingIntensity; public float landingSmooth; public float recoverySpeed; float impactForce = 0; void Update() { if (!playerMovement.isGrounded) { float yVelocity = playerMovement.controller.velocity.y; impactForce = -yVelocity * landingIntensity; if (gunAim.aiming) { yVelocity = Mathf.Max(yVelocity, 0); } transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.Euler(yVelocity * jumpIntensity, 0, 0), Time.deltaTime * jumpSmooth); } else if (playerMovement.isGrounded & impactForce >= 0) { transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.Euler(impactForce, 0, 0), Time.deltaTime * landingSmooth); impactForce -= recoverySpeed * Time.deltaTime; } else { transform.localRotation = Quaternion.Lerp(transform.localRotation, Quaternion.identity, Time.deltaTime * landingSmooth); } } }
@watercat1248
@watercat1248 2 жыл бұрын
Good luck with your game developer gurney
@Lejynn
@Lejynn 2 жыл бұрын
Thanks Water Cat!
@watercat1248
@watercat1248 2 жыл бұрын
@@Lejynn one other I segest if you think to take the game developer serusly I recommend you to find I game developer comunity the are multiple game developer comunity up there And I'm game developer as well
@Lejynn
@Lejynn 2 жыл бұрын
@@watercat1248 Thanks, that's a good recommendation. I actually have been thinking about this a lot and plan to start a discord server soon to build a small game dev community. But if you got any communities that you like, please let me know.
@watercat1248
@watercat1248 2 жыл бұрын
@@Lejynn in my experience I will by better if you are enter from discord server for existing comunity for reason is because. 1. It not guaranteed that your discord server I will become popular. 2. Wean you enter I form exciting discord community you able to select the spefic tpopic on the discord server you need help like for example one of the discourd server I have enter is form multiplayer. 3. If you enter other community discord servers you will by able to improve your own discord server if you follow same off the method the other discord servers useing I don't say to not create your own discord server what I'm saying is that I segest to finding game developer discord community in the order for you to getting help from multiple users on the spefic tpopic that on your discord community dasn't have people who know about the topic you need help
@Emr3letzemre
@Emr3letzemre Жыл бұрын
can we get the project to download?
@usbtypec.
@usbtypec. Жыл бұрын
I love how gamedev vids like thos are always 50% fps games and 50% survival games. And how capsules are always called beans
@Lejynn
@Lejynn Жыл бұрын
You're right. The FPS Survival games I think is just a genre most people are interested in creating. And I am not sure why we call 'capsules' beans. Maybe beans are just more fun to say. xP
@nobody19850
@nobody19850 Жыл бұрын
do you have the code for the game ? or the git hub ?
@mathew3267
@mathew3267 2 жыл бұрын
Got a long way to go to play with the big boys.
@Lejynn
@Lejynn 2 жыл бұрын
We all have to start somwehere. Just keep at it!
@dogetaylor5290
@dogetaylor5290 2 жыл бұрын
I love the game. Where did you get the camera shake script btw?
@actuallysanta4590
@actuallysanta4590 2 жыл бұрын
brackeys vid on it
@dogetaylor5290
@dogetaylor5290 2 жыл бұрын
@@actuallysanta4590 ok
@Lejynn
@Lejynn 2 жыл бұрын
Thanks! Actually, I got that camera shake script from the "Weapon Recoil Script" video in the description. It should be by Swindle Creative.
@guidebird76
@guidebird76 Жыл бұрын
Can you please make a download button for the game?
@codingopedia3635
@codingopedia3635 3 ай бұрын
can u give the weapon sway script plz
@Sterlinxvii
@Sterlinxvii 2 жыл бұрын
It also my first project
@Lejynn
@Lejynn 2 жыл бұрын
Nice, how are you liking game dev?
@Gefehhka
@Gefehhka Жыл бұрын
When I parent my gun to the player the gun shrinks from up and down and grows from sides.
@TheScienceDivision
@TheScienceDivision 2 жыл бұрын
Found in recommended
@Lejynn
@Lejynn 2 жыл бұрын
Glad to hear it!
How I Learned Procedural Generation
5:36
Lejynn
Рет қаралды 249 М.
I Tried Making a Multiplayer FPS Game in 1 Week...
8:40
Fancy
Рет қаралды 1,5 МЛН
La final estuvo difícil
00:34
Juan De Dios Pantoja
Рет қаралды 27 МЛН
Bro be careful where you drop the ball  #learnfromkhaby  #comedy
00:19
Khaby. Lame
Рет қаралды 40 МЛН
СҰЛТАН СҮЛЕЙМАНДАР | bayGUYS
24:46
bayGUYS
Рет қаралды 734 М.
ADD ARMS TO YOUR GAME - EASIEST WAY (Unity3D)
15:22
JonDevTutorials
Рет қаралды 48 М.
Remaking Brackey’s Cubethon, But Better
5:36
Lejynn
Рет қаралды 4,1 М.
Unity Basic Weapon System Tutorial
10:47
Plai
Рет қаралды 148 М.
Unity FPS Movement Tutorial by Dani  |  Karlson Parkour FPS Controller
8:36
DanisTutorials
Рет қаралды 1,1 МЛН
I Made a Game Controlled by A Banana
13:47
Dani
Рет қаралды 9 МЛН
FIRST PERSON MOVEMENT in Unity - FPS Controller
23:53
Brackeys
Рет қаралды 3,2 МЛН
How I Made My FPS Game Feel Better To Play | DEVLOG 0.37
6:11
Kyle Rhoads
Рет қаралды 166 М.
Weapon Sway And Bobbing Without Animations - #Unity Tutorial
7:12
I Made a Multiplayer FPS Game in 10 Days
6:12
Kyle Rhoads
Рет қаралды 1,1 МЛН
Shooting with Raycasts - Unity Tutorial
13:41
Brackeys
Рет қаралды 1,8 МЛН
La final estuvo difícil
00:34
Juan De Dios Pantoja
Рет қаралды 27 МЛН