Search Unity

Creating a Single Player First Person Shooter Game

Discussion in 'Community Learning & Teaching' started by Ryanrc, Aug 17, 2013.

?

Should I Continue This Tutorial?

  1. Yes

    97.6%
  2. No

    2.4%
  1. Ryanrc

    Ryanrc

    Joined:
    Mar 14, 2013
    Posts:
    14
    Part 1 - Making The Project
    ______________________________________________

    First, we have to create a new project, and to do that, we need to go over "File" at the top and press "Create New Project"

    $m4FTcqu.jpg



    Then we have to name our project, and tick all of the boxes, then click "Create"

    $jV6xuDq.jpg

    Wait for everything to load, then the project will start.

    Part 2 - Starting
    ______________________________________________

    Welcome back!

    We will not be using the regular character system. We will be using a smooth-version.

    With this one, the mouse sensitivity is awesome, and also you can wallrun.

    Click here to download. (20.65KB)


    Double-click it while unity is open, and import it into unity.

    Once imported, click on "Terrain" at the top and click on "Create Terrain"

    $Nqo2iGe.jpg


    At the bottom, you will see "Mine", open that, and drag "Capsule" Onto your Terrain.

    $vvAcjLV.jpg


    Move it around until it is in place.


    Now, you need to go to "GameObject" at the top, click "Create Other", then press "Directional Light"

    $QOBljll.jpg


    Then test your game The |> button at the top)!

    Then press CTRL+S or File at the top > Save and then type in "Game" and it will save.

    See you later!



    Open up the folder "Capsule"
    Then drag the cube / both of them into Camera.



    Now play! Oh, and don't forget to save!

    To Be Continued
     
    Last edited: Aug 18, 2013
  2. Ryanrc

    Ryanrc

    Joined:
    Mar 14, 2013
    Posts:
    14
    Part 3 - Guns [1/3]
    ______________________________________________

    Welcome back! Today we are gonna add a gun to the screen!
    This is a little bit hard.

    First, we go to "GameObject' at the top > Create Other > Cube

    $J9I4Hbg.jpg


    Then we adjust the cube, add duplicates, etc.

    $uKrNEB8.jpg


    If you added duplicates, do the next step with both the cubes.

    Open "Capsule" at the top by clicking the v button, and then drag both your cubes, into the "Camera" folder

    $sheNu4m.jpg


    Then play!

    Oh, don't forget to save!

    (The Gun Won't Shoot)

    Part 4 - Guns [2/3]
    ______________________________________________

    Welcome back, we are now gonna have a script.

    First, make a Empty in Camera, and but the cubes in there. GameObject > Create Empty (It will be called GameObject)
    Put it in the "Camera" folder like we did with the cubes. And put the cubes in the Empty

    Then, go to Assets > Create > JavaScript and name it GunShoot

    Open it, and put this script in.

    Drag that script into the empty folder "GameObject"

    Now, make a new sphere, and call it "Bullet", and move it infront of the gun.

    Then click on "Bullet", go to Component > Physics > RigidBody

    $IHyEdlg.jpg

    Then, click on our empty "GameObject", and drag "Bullet" into None (RigidBody)

    Now, we have a Bullet and a gun that does not work. This is because the bullet needs a script too. Do the same as last time, but name it "GunBullet" and put this code in. Drag this into "Bullet"

    The End, I know the gun does not shoot. We will be doing that in the next tutorial
     
    Last edited: Aug 18, 2013
  3. Ryanrc

    Ryanrc

    Joined:
    Mar 14, 2013
    Posts:
    14
    Part 5 - Work In Progress


    Part 6 - Work In Progress
     
  4. Ryanrc

    Ryanrc

    Joined:
    Mar 14, 2013
    Posts:
    14
    Part 7 - Work In Progress


    Part 8 - Work In Progress
     
  5. Ryanrc

    Ryanrc

    Joined:
    Mar 14, 2013
    Posts:
    14
    Part 9 - Work In Progress


    Part 10 - Work In Progress
     
  6. Vinayak Vijay

    Vinayak Vijay

    Joined:
    Dec 20, 2013
    Posts:
    1
    Please Update your tuttorial and thx
     
  7. CelticKnight

    CelticKnight

    Joined:
    Jan 12, 2015
    Posts:
    378
    I suppose this tutorial has gone bye-bye?
     
  8. Malik Xain

    Malik Xain

    Joined:
    Feb 28, 2015
    Posts:
    1
    yeah think so but he need to continue again
     
  9. H4QIEM ...

    H4QIEM ...

    Joined:
    Nov 7, 2015
    Posts:
    6
    I`m sure he`s coming.. Just wait
     
  10. DardanIsKingny11

    DardanIsKingny11

    Joined:
    Aug 10, 2013
    Posts:
    1
    Please continue this is really good :D
     
  11. ouragan84

    ouragan84

    Joined:
    Mar 27, 2018
    Posts:
    6
    Please continue this tutorial dude, We all love it !!!:):)