Awesome Third Person Shooter Controller! (Unity Tutorial)

preview_player
Показать описание
💬 How to make a Third Person Shooter Controller in Unity!
👍 Learn to make awesome games step-by-step from start to finish.

00:00 Third Person Shooter Unity Tutorial
01:24 Unity Starter Assets
02:18 Player Aim Virtual Camera
04:15 Aim Input
07:28 Aim Sensitivity
09:17 Crosshair
10:07 Shooting Target Position
15:15 Character Aim Rotation
18:55 Shooting Methods, Hitscan Vs Projectile
19:35 Shooting Projectile
24:05 Identify Shooting Target
26:00 Shooting Hitscan
28:26 Animations
30:44 Working Third Person Shooter Controller
31:10 Final Polished Third Person Shooter Controller

🔴 RELATED VIDEOS 🔴

💬 In this video let's build a Simple but Awesome Third Person Shooter Controller!
It is built on top of the official Unity Starter Assets so we already have a working base.
We add the Aim logic, make some projectiles, handle the animations and polish it all up.

🌍 Get Code Monkey on Steam!
👍 Interactive Tutorials, Complete Games and More!

If you have any questions post them in the comments and I'll do my best to answer them.

See you next time!

#unitytutorial #unity #gamedev #unity3d #unity2d #indiegame​ #gamedevelopment #madewithunity​ #indiedev​

--------------------------------------------------------------------
Hello and Welcome!
I'm your Code Monkey and here you will learn everything about Game Development in Unity using C#.

I've been developing games for several years with 8 published games on Steam and now I'm sharing my knowledge to help you on your own game development journey.

I do Unity Tutorials on just about every topic, Unity Tutorials for Beginners and Unity Tutorials for Advanced users.

--------------------------------------------------------------------
- Other great Unity channels:
--------------------------------------------------------------------
Рекомендации по теме
Комментарии
Автор

💬 It took a lot of work to make this video but I'm really happy with the final result! I hope you like it!
👍 Learn to make awesome games step-by-step from start to finish.

CodeMonkeyUnity
Автор

Excellent tutorial! I had already got a basic combat system going with the Third Person Controller, but I was not at all happy with the camera. This tutorial made it all right as rain, thank you! :)

AlexraptorGameDev
Автор

This is the first tutorial I found showing how to extend the Unity Starter controller up to a real use case scenario. Great content, thank you!

marcoszanre
Автор

for those stuck between 20:00-23:00:

1. make sure the BulletProjectile script is on the pfBulletProjectile prefab (click the prefab and drag the script on).
2. Also, click on the prefab and make sure Use Gravity is ticked off.

Still following the tutorial, but was stuck for a good while on this. Good luck!

update: works perfectly thank you so much this is an amazing tutorial

teppidd
Автор

This! This is what I needed to know to make the game I had in my head for almost a year, but put it to the side for easier challenges

tonyhamilton
Автор

I'll be real with you, channels such as Code Monkey and Brackeys are the reason I chose Unity over Unreal when it came to answering "which engine?"
The quality and accessibility of tutorials such as these _cannot_ be overstated. Thank you for all the terrific content, and keep doing what you do! You've earned another subscriber/supporter!

StrunDoNhor
Автор

Great little tutorial. I liked the new input system you are using compared to the old one. The coding you added for the third person controller was also pretty informative. Gotta save this to use later if I get around to doing a tps shooter demo in the future.

tmoneygamestudio
Автор

Finally a simple and good tutorial about third person shooter. There's a lot out there but each one more difficult then other. Congratulations for this awesome tutorial.

wmorais
Автор

If anyone is having difficulty aiming and walking at the same time, you need to create an Avatar Mask. Open up "Humanoid" in the Avatar Mask and deselect the legs and lower IK so that only the upperbody is green. Then, click the cog wheel on the Aiming layer and add the Avatar Mask to the Mask field. This will make it so that when aiming, only the upper body bones are affected and you will still be able to walk as per the Base Layer animations.

AaronAsherRandall
Автор

its finally happening! Im really hoping for a melee combat tutorial that expands upon the 3rd person starter assets. would it be possible to have the melee combat have animations where you dont just animate the upper body to perform melee attacks? like if you do a melee attack, you wont be able to move until the melee animation has finished playing like in most action games? a combo and targeting system would also be nice :)

adrianalcomendras
Автор

This is a fantastic workout with the new Input system and the third-person character controller! Very well done! Thanks!

diliupg
Автор

When you turn the character to the direction you're aiming, you use Lerp with the current position in the first argument. Lerp really works when you continually provide the original starting value and a final value on every frame. If you don't want to keep track of the original starting value, use MoveToward or RotateToward instead. The progression of values you get with Lerp are only linear if you use it as designed, with the original starting value on every call.

ed_halley
Автор

I absolutely love this video. Right up to the point of adding a point animation. I can't find anything easy to follow that will allow me to add animations to the standard unity third person controller.

RyanGumley
Автор

you can put and "else{ mouseWorldPosition = ray.GetPoint(10);}" after the raycast so you dont need a collider for the skybox

Foxtrop
Автор

You should do a tutorial on a First Person Controller setup with full body awareness and animation rigging. I just realized while putting mine together that there are no real good tutorials for that out there for reference so I had to do mine all by scratch. It was actually more tricky than I expected. I never realized things like keeping the head and body separate for networking reasons. Or how difficult it really is to get the body to perform like an actual body in relation to eye sight and the hands/gun movement.

DarkParadice
Автор

I'll be honest, what i was expecting was ful tutorial without assets. But good theres a person that creates these free of charge for everyone ^^. Keep it up!

mrwhiteeagle
Автор

The instantiating bullet can be used in a realistic game as then we can set the spawn point in the guns barrel and then if this happens( 27:54 ) then it shows that the bullet actually spawns from the guns itself and not from the middle of the screen, many realistic FPS/TPS games do this thing and it adds that extra bit of realism to the game really cool, raycast can be used for a more arcade shooter

Ez-_-.
Автор

This is perfect, I'm currently working on and trying to learn how to make some good feeling Third person shooter controls!

Renegade
Автор

dude thank you so much for this!!! I've been pulling my hair out for months trying to figure this new input system out and though I'm still reluctant to say I figured it out, I definitely made progress finally today with combining what I've been trying to do with what you did here... Thank you so much for this upload! You're making dreams come true my friend!

brianrussell
Автор

Best video yet @Code Monkey! And great point at the end to 'never stop learning'. Sooo true

IndieScapeGames