
Unity FPS Survival Game Tutorial - First Person Shooter Game Dev
video description
Date: 2022-03-14
Related videos
Comments and reviews: 10
itech
I will try to make this work on a Gamepad and show edits as I go.
At 1:00:00 to get jump to work with a controller use GetButtonDown instead of KeyCode. Here is what I did. Fire1 will be left control on keyboard and south button on gamepad.
void PlayerJump()-
--
if(character_Controller.isGrounded && Input.GetButtonDown(-Fire1-)) -
--
vertical_Velocity = jump_Force;-
--
-
At 1:23:15
Go to Edit>>Project Settings>> Input Manager. Duplicate Arrary Element of Mouse X and Mouse Y by right clicking on originals.
Here change Type to Joystick Axis, Axis to 4th axis(Joysticks) on Mouse X. On Mouse Y add the same Type, but change Axis to 5th axis(Joysticks). You should have 2 Mouse X's and Mouse Y's on Input Manager now.
reply
I will try to make this work on a Gamepad and show edits as I go.
At 1:00:00 to get jump to work with a controller use GetButtonDown instead of KeyCode. Here is what I did. Fire1 will be left control on keyboard and south button on gamepad.
void PlayerJump()-
--
if(character_Controller.isGrounded && Input.GetButtonDown(-Fire1-)) -
--
vertical_Velocity = jump_Force;-
--
-
At 1:23:15
Go to Edit>>Project Settings>> Input Manager. Duplicate Arrary Element of Mouse X and Mouse Y by right clicking on originals.
Here change Type to Joystick Axis, Axis to 4th axis(Joysticks) on Mouse X. On Mouse Y add the same Type, but change Axis to 5th axis(Joysticks). You should have 2 Mouse X's and Mouse Y's on Input Manager now.
reply
Alex
Morning Hive mind - im coming into this really fresh faced - im on unity 2020 and have VS 2019 for scripting. Seem to have hit a snag earlier than i was hoping. Currently at timestamp 37.03 on this tutorial - im looking at Visual Studio on my machine - and basically i cant find Character_Controller - infact i cant find Character anything - do i need to load Unity specific language libraries into VS19? i can find alot about charactercontrolelrs online, but nothing specific to this dilemma. and help greatly appreciated.xxx
reply
Morning Hive mind - im coming into this really fresh faced - im on unity 2020 and have VS 2019 for scripting. Seem to have hit a snag earlier than i was hoping. Currently at timestamp 37.03 on this tutorial - im looking at Visual Studio on my machine - and basically i cant find Character_Controller - infact i cant find Character anything - do i need to load Unity specific language libraries into VS19? i can find alot about charactercontrolelrs online, but nothing specific to this dilemma. and help greatly appreciated.xxx
reply
Hoai
This is a Greate Video i had Watch for learn UNITY. Its quite clear for infor and each step. Thanks so much for your 8H video again.
And I am wondering at -HEALTH SCRIPT-, when I turn on the -Is Kinematic- on -Rigidbody-, the -Revolver- will detect the Cannibal when I shoot him, but when I turn it off, It can't detect the Boar or Cannibal. Can you help me with this error please>? Thanks so much, and again for your Greate Tutorial Video.
reply
This is a Greate Video i had Watch for learn UNITY. Its quite clear for infor and each step. Thanks so much for your 8H video again.
And I am wondering at -HEALTH SCRIPT-, when I turn on the -Is Kinematic- on -Rigidbody-, the -Revolver- will detect the Cannibal when I shoot him, but when I turn it off, It can't detect the Boar or Cannibal. Can you help me with this error please>? Thanks so much, and again for your Greate Tutorial Video.
reply
Striver
Made 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.
reply
Made 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.
reply
Nitupervin
I am still having some issues with my hit detection for my axe. I did everything you did, however, the hit is not detecting when i give small radius, and only when i set the radius to something absurd, such as 1000. i am also having troubles with my guns as the box collider on the enemy is not picking up the raycast sent by the gun.
reply
I am still having some issues with my hit detection for my axe. I did everything you did, however, the hit is not detecting when i give small radius, and only when i set the radius to something absurd, such as 1000. i am also having troubles with my guns as the box collider on the enemy is not picking up the raycast sent by the gun.
reply
Braden
If 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!
reply
If 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!
reply
Striver
5: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?
reply
5: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?
reply
Igor
Did 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?
reply
Did 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?
reply
itech
Please I have a problem. I have done all for the cannibal but the hit function just works for the board. Sometimes, it works once for the cannibal after that, it doesn't work anymore. Even after I restart unity. Please help...
reply
Please I have a problem. I have done all for the cannibal but the hit function just works for the board. Sometimes, it works once for the cannibal after that, it doesn't work anymore. Even after I restart unity. Please help...
reply
---------
if(chase_Distance != current_Chase_Distance) --
chase_Distance = current_Chase_Distance;-
-
when this code will be executed, i can not find when the condition is true in EnemyController scrpit
reply
if(chase_Distance != current_Chase_Distance) --
chase_Distance = current_Chase_Distance;-
-
when this code will be executed, i can not find when the condition is true in EnemyController scrpit
reply
Add a review, comment
Other channel videos















