Learn how to make a first-person shooter in Unity. Making a FPS in Unity is easy for beginners. This 8-hour tutorial covers everything you need to know to make a basic first person shooter game.
💻Assets:
💻Full Project:
Tutorial created by Awesome Tuts. Check out Awesome Tuts Youtube channel:
On the Awesome Tuts website, you can learn to create a game in 40 minutes:
The creator of the assets is Winterbyte and these are the assets from their Ultimate Survival Asset Pack. Please NOTE that these assets can be used only for EDUCATIONAL purposes to follow this tutorial, you can’t use them to create a commercial game or share the assets with others.
⭐️Contents⭐️
⌨️ (0:00:00) Intro And Game Preview
⌨️ (0:04:21) Importing Level And Configuring Lights In The Game
⌨️ (0:10:19) Creating FPS Player
⌨️ (0:35:35) Coding Player’s Movement And Jump
⌨️ (1:02:07) FPS Mouse Look And Mouse Controls
⌨️ (1:33:14) Player’s Sprint And Crouch
⌨️ (1:49:01) Player’s Footsteps Sound
⌨️ (2:18:47) Animating Player’s FPS Hands And Weapons
⌨️ (2:41:27) Weapon Handler (script for controlling the attributes of weapons)
⌨️ (2:57:05) Weapon Manager (script for controlling the switching between weapons in our game)
⌨️ (3:10:36) Player Attack (script for controlling the shooting with the selected weapon)
⌨️ (3:36:52) Creating The Zoom Effect With Animations And Scripting
⌨️ (4:07:02) Creating Arrow And Spear Bullet Prefabs
⌨️ (4:36:27) Configuring And Animating Our Cannibal Enemy
⌨️ (4:50:40) Creating Enemy Animation Script
⌨️ (4:57:30) Enemy Controller (the script that will control the enemy’s AI and make him move and attack the player)
⌨️ (5:40:04) Configuring And Creating The Boar Enemy
⌨️ (5:51:10) Detecting And Dealing Damage
⌨️ (6:14:52) Creating Health Script
⌨️ (6:49:02) Creating Player And Enemies Sound Effects And Shoot Effects Sounds
⌨️ (7:21:13) Creating Player Stats UI
⌨️ (7:32:38) Displaying Health And Stamina Using Player Stats UI
⌨️ (7:46:45) Creating Enemy Manager(the script that will spawn the enemies) and adding Finishing Touches To Our Game
—
Learn to code for free and get a developer job:
Read hundreds of articles on programming:
And subscribe for new videos on technology every day:
Striver For
22.06.20224:52:10
4:51:30
4:50:20
4:50:00
4:49:30
4:49:00
4:38:00
4:37:20
4:36:50
4:36:00
4:17:40
4:08:10
3:35:50
3:35:20
3:19:00
2:58:50
2:53:00
2:42:10
2:14:40
2:13:30
1:48:00
1:32:30
1:31:30
1:03:40
1:03:00
1:01:30
36:40 – Coding start
35:10
33:40
9:50
9:02
Striver For
22.06.202251:10 For me, it mistakenly thought I had two errors "axis does not exist in the current context". I had no idea what to do then it fixed itself somehow. I closed and reopened Unity, maybe that helped
Captain Cookies
22.06.2022Is this still working in version 2019.5.4f1
Gonzalo Ulloa
22.06.2022It would be good to have it for mobile…
Gonzalo Ulloa
22.06.2022Please, make a mobile version….
Ch Sufyan Sharif
22.06.2022Sir your assets and project zip file corrupt .Any solution.
mr crazzy meme
22.06.2022Thank you I have been struggling trying to make a game this helped me out a lot.😁😁
The Real Shlamboom
22.06.2022I’m using the tutorial and after I’m done I will replace the assets with my own to remake doom
Jerry S. Lawson
22.06.2022Thank you for the VIDEO!!!!
Question for anyone.
When you aim with a bow does it shoot first? Or does any of your weapon shoot first?
Frank Tan
22.06.2022Ty I've followed the whole tutorial. The only thing that didn't for me was transform.find(tags.lookroot).transform.find(tags.zoom_camera).getcomponent , somehow it always comes up with referenced null object error and did not run the script, I got over it by just using Gameobject.find(tags.zoom_camera).getcomponent .
2 thumbs up Winterbyte !
All For Gamers
22.06.2022i need help in inspector of axe weapons i don't have avatar it's show none how to fix it
Capn Hotdog
20.06.2022not a fan of the long video, but you gotta give this guy a shoutout for making like 8 hour videos for people learning programming, good job man!
Striver For
20.06.20224:50:30 When I do that, the Cannibal just vanishes, nothing else. Anybody else? And what's the reason for this?
Striver For
20.06.20227:47:30
7:45:40
7:33:50
7:20:00
7:10:40
6:52:35
6:50:30
6:40:40
6:14:00
6:13:00
5:56:00
5:52:00
5:50:50
5:49:31
5:40:55
5:39:00
5:31:15
4:50:20
4:50:00
4:49:30
4:49:00
4:38:00
4:37:20
4:36:50
4:36:00
4:17:40
4:08:10
3:35:50
3:35:20
3:19:00
2:58:50
2:53:00
2:42:10
2:14:40
2:13:30
1:48:00
1:32:30
1:31:30
1:03:40
1:03:00
1:01:30
36:40 – Coding start
35:10
33:40
9:50
9:02
0:20
Striver For
20.06.20225:52:00 This part is confusing. I don't see where the pasted component values came from. It didn't work for me
Update: Oh okay it doesn't matter greatly?
6:05:15 It always works when I attack the boar but not always with the cannibal. Why?
Striver For
20.06.2022Made it to the end of the video!!! I got through it easier than the Beginner's Unity Tutorial video. But some things didn't work and I thought I copied everything from the video exactly. I'll check. They might be glitches for all I know.
Also, the first time through the whole video, I didn't nearly absorb all the coding info. I'll need to rewatch a lot.
Striver For
20.06.2022Crouching
1:35:10
1:37:50
3:11:30
1:34:00
3:37:20
37:20
8:00
Scripts
36:52 PlayerMovement
44:50 TagHolder (Helper Scripts)
1:03:08 MouseLook (Player Scripts)
1:34:07 PlayerSprintandCrouch (Player Scripts)
1:49:25, 1:50:10 PlayerFootsteps (Player Scripts)
2:42:20 WeaponHandler (Weapons Scripts)
2:57:33 WeaponManager (Weapons Scripts)
3:11:04 PlayerAttack (Player Scripts)
4:10:30 ArrowBowScript (Weapons Scripts)
4:51:45 EnemyAnimator (Enemy Scripts)
4:58:05 EnemyController (Enemy Scripts)
5:53:50 Attack Script (Player Scripts)
6:16:20 HealthScript (Player Scripts)
6:51:20 PlayerAxeWooshSound (Player Scripts)
7:10:20 EnemyAudio (Enemy Scripts)
7:29:10 PlayerStats (Player Scripts)
7:49:05 EnemyManager (Game Manager)
Igor Ilić
20.06.2022Did anyone have a problem with Cannibal raycasting and killing it? I think i have that because for some reason when i am doing animation from animation tab, my cannibal get position at around 0,0,0. Anyone has idea what do and how to fix that?
Obito Verse
20.06.2022Ain't no way did I learn more in 8 hours than in my $500 month coding camp.
Michael Zhao
20.06.2022I wonder how many people actually made it to the end.Very nice tutorial !!!!!!
Braden Thornton
20.06.2022If you are watching this in 2022, just a heads up, I recommend you change the code slightly in the Crouch function to “`if (Input.GetKeyDown(KeyCode.C) && character_Controller.isGrounded)“` so that your player cannot crouch while mid jump. This prevents the player from crouching if they are mid jump!
FuzzyPanda16
20.06.2022Who complains about a long tutorial?
die shot gamer
20.06.2022he deserve milllions of views
Aleks Iniusev
20.06.2022Can I be honest and just say that the only mistake with this video are the unavailable subtitles xD
NatCorner
20.06.2022I am very happy that my interest to learn and develop game code is fulfilling. Very nice tutorial and very helpful. thank you so so much. For some reason, cannibal is not taking damage when i add RigidBody component on it. If i remove it, i am able to kill it. any suggestions on this behavior.
Muhammed Hussain
20.06.2022Please can someone help me. I have coded everything and the cannibals can deal damage to me but I cannot kill them when I shoot them. (I am using AR). Would really appreciate a quick response. Thanks
DITOMAHARDIKA
20.06.2022u better than trump
Xtreme PlayzYT
20.06.2022Nice
Xtreme PlayzYT
20.06.202234;48
Antero Lindell
20.06.2022Your code gives me headaches.
l'etranger
20.06.20222:50:21
AMV KING
16.06.2022I tried making the player movement script and it's not working can you pls help me
Ooh Really
16.06.2022Thank you
Vav
16.06.2022Thanks for making such great videos! I’ve recently released my first 2d game watching your 8 hour long video on starting unity. Now i’m watching this one, and soon my first 3d game will be released 🙂 If someone is interested, I have a video about how I made my first game https://youtu.be/ARbwFvt8-RI
Sushant Reddy
16.06.20223:55.59 the zoominandout() method is giving me an error which says "This async method lacks 'await' operators and will run synchronously.Consider using the 'await' operator. " How to fix this??
nitesh thakur
16.06.2022In the method in zoominandout I'm facing this error zoominandout does not exist in current context 😢😢😢😭😭😭😭😥😥
nitesh thakur
16.06.2022In the method in zoominandout I'm facing this error zoominandout does not exist in current context 😢😢😢😭😭😭😭😥😥
nitesh thakur
16.06.2022In the method in zoominandout I'm facing this error zoominandout does not exist in current context 😢😢😢😭😭😭😭😥😥
nitesh thakur
16.06.2022In the method in zoominandout I'm facing this error zoominandout does not exist in current context 😢😢😢😭😭😭😭😥😥
nitesh thakur
16.06.2022In the method in zoominandout I'm facing this error zoominandout does not exist in current context 😢😢😢😭😭😭😭😥😥
nitesh thakur
16.06.2022In the method in zoominandout I'm facing this error zoominandout does not exist in current context 😢😢😢😭😭😭😭😥😥
nitesh thakur
15.06.2022In the method in zoominandout I'm facing this error zoominandout does not exist in current context 😢😢😢😭😭😭😭😥😥In the method in zoominandout I'm facing this error zoominandout does not exist in current context 😢😢😢😭😭😭😭😥😥
nitesh thakur
15.06.2022In the method in zoominandout I'm facing this error zoominandout does not exist in current context 😢😢😢😭😭😭😭😥😥
Danilo Alvaro
15.06.2022wha the fuc this video is very great thank you very much
Game development with unity
15.06.2022I just make a full game and my windows corrupted 😭😭😭🥺🥺
Waldemar Frygiel
15.06.2022W imię ojca i syna i ducha świętego amen
Pod twoją obroę uciekamy się święta boża rodzicielko, naszymi prośbami racz nie gardzić w potrzebach naszych ale od wszelakich złych przygód racz nas zawsze wybawijj, panno chwalebna i błogosłaiona o pani nasza orędowniczko nasza, pocieszycielko nasza z synem swoim nas pojednaj synowi swojemu nas polecaj synowi swojemu nas polecaj swojemu nas oddawaj
w imię ojca i syna i ducha świętego amen
Nayetwolf
15.06.2022How on earth is this a FREE !!! tutorial sheeeeesh you guys are beyond awesome with all the effort you put for the rest of us mortals out here!
HyipGu.ru #EdBogat
15.06.2022to kill CANNIBAL you nide value of RIGIDBODY Drag set 1
HyipGu.ru #EdBogat
15.06.20227:46 for chek player move
private Vector3 currentPosition;
private bool isMuving =false
void Start()
{
Vector3 currentPosition = transform.position;
player_Footsteps.volume_Min = walk_Volume_Min;
player_Footsteps.volume_Max = walk_Volume_Max;
player_Footsteps.step_Distance = walk_Step_Distance;
}
// Update is called once per frame
void Update()
{
if (currentPosition != transform.position)
{
isMuving = true;
}
else
{
isMuving = false;
}
currentPosition = transform.position;
Sprint();
Crouch();
}
if (Input.GetKey(KeyCode.LeftShift) && !is_Crouching && isMuving)
{
sprint_Value -= sprint_Treshold * Time.deltaTime;
if(sprint_Value <= 0f)…
inventwithdean
15.06.2022Thanks man!
You saved my time. I was struggling with animation transitions.
But now I'm good XD.