Make a FIRST PERSON SHOOTER in 10 MINUTES - Unity Tutorial

Sdílet
Vložit
  • čas přidán 7. 09. 2024
  • Let's make a FIRST PERSON SHOOTER in 10 Minutes!
    ● Sci-Fi Gun Light: bit.ly/3HuFC6y
    ● INSTALL UNITY: • INSTALL & SETUP UNITY ...
    ● Unity Rolly Vortex Game: bit.ly/3NLfNPQ
    ♥ Don't Click This! : bit.ly/2Zi3vu9
    ♥ My Second Channel: bit.ly/3jvI8g6
    --------------------------------------------------------------------
    ✅ My current Productivity Setup 👇:
    ● Gaming Headset: amzn.to/3HyXgp2
    ● Gaming Mouse: amzn.to/3ni4Ygp
    ● Best Webcam: amzn.to/44pVUqw
    ● Keyboard: amzn.to/3ALXB3M
    ● GPU: amzn.to/42mylNt
    ● CPU: amzn.to/44lOBjs
    --------------------------------------------------------------------
    FOLLOW ME:
    ● Facebook: / developer3.5pro
    ● Sketchfab: sketchfab.com/...
    --------------------------------------------------------------------
    ► All content by GDTitans is 100% free. I believe that education should be freely available to everyone.

Komentáře • 312

  • @Hassanali-jr4yb
    @Hassanali-jr4yb Před rokem +31

    A mobile version with a cool environment & Enemy AI's on mobile will just be soo amazing. Do make something like that man.
    Everyone would like it

    • @GDTitans
      @GDTitans  Před rokem +7

      Thanks for your suggestions

    • @Hassanali-jr4yb
      @Hassanali-jr4yb Před rokem +3

      @@GDTitans appreciated man few time ago , i have learned to make an endless runner of your series.
      Learned a ton from it.
      Again thanks for all of this effort.

    • @ahsanslifestyle549
      @ahsanslifestyle549 Před rokem

      ##################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################################

  • @dwellersart7538
    @dwellersart7538 Před rokem +7

    im total noob. its my first unity tutor i can complete. thx alot.

  • @AveryLarsenReal
    @AveryLarsenReal Před rokem +65

    this did not take 10 mins it took me a day lol

    • @timeaverage
      @timeaverage Před rokem +6

      FAX!

    • @DMlTREl
      @DMlTREl Před rokem +5

      Still surprised what it didn't took whole decade

    • @navaneeth5358
      @navaneeth5358 Před 10 měsíci +1

      He told will only teach u in 10 min . Sadly 😢 .

    • @MatPod295
      @MatPod295 Před 6 měsíci +2

      It’s better then nothing

    • @MineD_211
      @MineD_211 Před 5 měsíci

      Indian scammer

  • @OzarkDev
    @OzarkDev Před rokem +10

    great tutorial im using a different pack and had to rotate the gun and bulletpoint but the gun keeps shooting backwards

  • @user-et1hr9kw7c
    @user-et1hr9kw7c Před 7 měsíci +3

    GDTitans How can i make it so the bullet destroys a gameobject with "enemy" as the tag?

  • @nabilabenhssein9175
    @nabilabenhssein9175 Před rokem +20

    Start new series about multiplayer and friendlist

  • @shaded2324
    @shaded2324 Před rokem +2

    2:59 the convert seleted built in materials to URP is gray and wont let me interact/press it.

  • @JUST_ME61501
    @JUST_ME61501 Před rokem +1

    nah man the "3D BALLS" got me rolling on the floor

  • @CJ_Gamezz_YT
    @CJ_Gamezz_YT Před rokem +19

    if your bullet shoots backwards or a little to the right, change your bullet speed to negative 600. i had the same problem and this should fix it.

    • @minebloxgamer1219
      @minebloxgamer1219 Před rokem +3

      Tysm

    • @LeGordoBondiola
      @LeGordoBondiola Před rokem +1

      Wait, does it also work if it only shoots to the left?

    • @elianderson727
      @elianderson727 Před rokem +1

      @@LeGordoBondiola The rotation of the bulletPoint (where the bullet is created) is off. The bullet is created with the same rotation as the bulletPoint. The OP must have his bulletPoint pointing backwards so that changing the speed to negative makes the bullet move backward from the direction it was created in, which is the direction it should go in the first place.
      To fix, change the setting in the top left of the Scene tab from "Global " to "Local". Then rotate the bulletPoint so the z axis (the blue arrow) is pointing forward. Unity considers the z axis as forward. If it is shooting left, try rotating the y axis of the bulletPoint's transform by 90 degrees.

    • @porpoiseproductions1422
      @porpoiseproductions1422 Před 8 měsíci

      @@elianderson727mine shoots to the left of my gun regardless of my rotation how do I fix?

    • @elianderson727
      @elianderson727 Před 8 měsíci

      @@porpoiseproductions1422 Here are a few things to try.
      Make sure you are changing the rotation of the BulletPoint, not the gun or the bullet.
      Make sure you are correctly referencing the BulletPoint in you Gun script (your BulletPoint should be dragged into the slot you created in the inspector with public GameObject bulletPoint). 10:37
      In your Shoot() function, when you instantiate the bullet, try changing it's rotation (the last argument) to bulletPoint.transform.Rotation. 11:03
      Mess with the freezing the bullet prefab's rotations 9:13

  • @Adrenaline0000
    @Adrenaline0000 Před 7 měsíci +2

    I always get the 'Type or namespace definition, or end-of-file expected' message in the console and i cant paly the game since it says 'All compiler errors have to be fixed before you can enter playmode!' I dont know how to fix this

  • @aaarandomer346
    @aaarandomer346 Před 9 měsíci +3

    Help. I don't have the first person template. where do I get it from? Ps. I am using unity 3.6.1 and editor version 2022.3.15f1 LTS

    • @arsfnp4644
      @arsfnp4644 Před 9 měsíci +1

      did u figure it out?
      ( i have the same prob )

    • @GuenonsVR
      @GuenonsVR Před 5 měsíci

      @@arsfnp4644 you can use editor 2021.3.33f1(MAKE SURE ANDROID BUILD SUPPORT IS TURNED ON)

  • @VakondUr
    @VakondUr Před rokem +6

    4:47 how did you open the StarterAssests in visual studio? For me it opens in google and i cant owerwrite anything in it

    • @GDTitans
      @GDTitans  Před rokem +3

      Go to Edit > Preferences > External tools
      Then, change the External Script Editor

  • @Keskinarkausn
    @Keskinarkausn Před 5 měsíci +7

    Where do i can find the first person mode

  • @PuggyParadise
    @PuggyParadise Před rokem +2

    This tutorial doesn't work I just get error messages. Can you create an updated one that works with the new unity versions or whatever?

  • @Caden_is_cool
    @Caden_is_cool Před rokem +4

    Please help mine is shooting to the left

    • @timeaverage
      @timeaverage Před rokem +1

      SAME... if u find a solution PLS TELL ME!

    • @shrimplyawesome378
      @shrimplyawesome378 Před rokem +1

      @@timeaverage I tried a couple different things the only thing that worked for me was in the gun script towards the bottom were it says transform.forward change forward to right or left or backward depending on which direction your bullet is going, i couldn't tell you why it's doing it, but that's what worked for me. Hope this helps

    • @timeaverage
      @timeaverage Před rokem

      @@shrimplyawesome378TYSM! It fixed it! 😊

  • @MrJereJo-Gaming
    @MrJereJo-Gaming Před rokem +2

    i attached the bullet to the gun, It says that my gun s firing but i only see the bullet 0.1 second when i strafge to the right. I changed the bullet speed to 1 but still cant see it....... Does anyone know why ????

  • @gmangman123
    @gmangman123 Před rokem +7

    impressive tutorial again. Thx my friend!

    • @GDTitans
      @GDTitans  Před rokem +5

      Thanks,
      Really glad it was helpful!

  • @Plasma_god
    @Plasma_god Před rokem +8

    It's not allowing me to attach the gun file to the gun I need help

    • @sahilmishra2012
      @sahilmishra2012 Před rokem

      Same

    • @gizmowizard352
      @gizmowizard352 Před 3 dny

      @@sahilmishra2012 Go to the Gun object. In the inspector window, drag the script (or "file") right on the Add Component button. Done!

  • @wolfgamingworld2464
    @wolfgamingworld2464 Před rokem +2

    Hi i am trying to attach the gun in the player capsule but its not attaching and its invisible.Please help me

  • @user-tt1zt3cq2y
    @user-tt1zt3cq2y Před měsícem +1

    birinchi yuz camerani qanday qilish mumkin player ko'zi bilan ko'rish uchun

  • @Ai_Unofficial
    @Ai_Unofficial Před 10 měsíci +2

    Can you make a tutorial on adding crosshair and aim correctly. So that we shoot correctly

  • @TheQweerdeer00
    @TheQweerdeer00 Před rokem +6

    whenever i try to add the script to the gun it just says it doesnt work because the class file doesnt match the script name or whatever even though it quite literally does

    • @butterdog9483
      @butterdog9483 Před rokem +1

      If you're still having this issue make sure the script name is the same as the word right next to "Public class"

    • @danielinserte9814
      @danielinserte9814 Před rokem

      @@butterdog9483 im having this issue and i even tried just to create a script without renaming it and its still the same problem.

    • @Cramped_is_sus
      @Cramped_is_sus Před rokem

      @@danielinserte9814 same

    • @vijaygurubalaji6143
      @vijaygurubalaji6143 Před rokem +1

      @@Cramped_is_sus Delete the script and try to create a new c# script with the same name

    • @ferdinandw.8952
      @ferdinandw.8952 Před rokem

      its the new or well now old Unity Version sorry! the team will try to resolve this

  • @luca-xx7ec
    @luca-xx7ec Před 10 měsíci +1

    My bullet doesn't shoot to the crosshair in the middle of the screen but next to it, what can I do?

  • @rustythefoxcoon5143
    @rustythefoxcoon5143 Před rokem +5

    So you make the control to shoot on the player script, but how do you modify weapon behavior, swap models, that kinda thing? For instance how does burst fire work?

    • @apfelhuhn
      @apfelhuhn Před rokem

      ayo i also need that information. did you figure out yet?

    • @NolanCoe
      @NolanCoe Před rokem +1

      @@apfelhuhn let me know if either one of you find a good source of info for this kind of stuff please 😭❤️

  • @user-qx3id4ln1p
    @user-qx3id4ln1p Před měsícem +1

    Can u please do a video on how to make realistic shooter game

  • @akamyt00091
    @akamyt00091 Před rokem +2

    excuse me could anyone just help me I have a question if I use this project and change it will there be any problem if I upload the game I mean can I get money from it????\

    • @nayrb727
      @nayrb727 Před 6 měsíci

      i think as long as u dont make over 100k u good

    • @gizmowizard352
      @gizmowizard352 Před 3 dny

      @@nayrb727 Yes, but you have to get the Unity Premium version so you have rights

  • @legang8983
    @legang8983 Před rokem +15

    what a nice and clear tutorial. thank you

  • @jamieandroidgaming5714
    @jamieandroidgaming5714 Před rokem +4

    the code in this video didnt work but heres code that does the same thing

    • @jamieandroidgaming5714
      @jamieandroidgaming5714 Před rokem +3

      using UnityEngine;
      public class NewBehaviourScript : MonoBehaviour
      {
      private bool _shoot;
      // Start is called before the first frame update
      void Start()
      {
      _shoot = false;
      }
      // Update is called once per frame
      void Update()
      {
      if (Input.GetMouseButtonDown(0))
      {
      _shoot = true;
      }
      if (_shoot)
      {
      Shoot();
      _shoot = false;
      }
      }
      void Shoot()
      {
      Debug.Log("Shoot");
      }
      }

    • @tallurikarthikeyasai
      @tallurikarthikeyasai Před 4 měsíci

      @@jamieandroidgaming5714 thx

    • @MaskedTRPlays
      @MaskedTRPlays Před 6 dny

      wheres the code?

  • @NightmaresAreHere
    @NightmaresAreHere Před rokem +1

    I'm looking this video whilst I sleep wish me luck

  • @Jos_58
    @Jos_58 Před rokem +4

    how do i get the first person option in creating a new project

  • @Jxey69
    @Jxey69 Před rokem +2

    help! My unity is 3.5.0 and I can't find first person template...

  • @mandlawi
    @mandlawi Před rokem +1

    I want to gather people with these skills to develop a first shooter game, not just a game, but a special one. So that I will tell them what to make, how each character moves and attack, what environment and so on.
    Would you please direct me where to start or how to get in contact with another person that knows better that should tell me what to do from start to end please?

    • @DapperSapper515
      @DapperSapper515 Před 11 měsíci

      Do you have the money to pay these people? You know how long creating something like this takes, right? Lol...

    • @Ultrapassive
      @Ultrapassive Před 8 měsíci

      I'm very curious what your idea is

  • @mirhoomirhoo7408
    @mirhoomirhoo7408 Před rokem +1

    how can I change the default keybind settingd to zqsd ?

  • @manuelhernandez2017
    @manuelhernandez2017 Před rokem +3

    how to read input to do automatic fire? In other words, how to create get input if (Key is held down during next frame update?)
    Thank you for the nice tutorial

    • @Ultrapassive
      @Ultrapassive Před 8 měsíci

      I believe you can just copy the code from the sprint logic. Sprinting works by holding sprint button down.

    • @manuelhernandez2017
      @manuelhernandez2017 Před 8 měsíci

      @@Ultrapassive I'm going to try that. I didn't even think of that

    • @Ultrapassive
      @Ultrapassive Před 8 měsíci

      @@manuelhernandez2017 how'd it go?

  • @amir_reza2321
    @amir_reza2321 Před 2 měsíci +1

    Really helpful and clear, thanks

    • @GDTitans
      @GDTitans  Před 2 měsíci +2

      Glad it was helpful!

  • @milesspots6501
    @milesspots6501 Před rokem +2

    For some reason my unity says that the type or namespace StarterAssestsInputs can’t be found. I’m using the correct namespace and the problem is still there. Please help

    • @jjbaas7494
      @jjbaas7494 Před rokem +1

      You have to put the starerassetsinputs script on your gun

    • @bustedpluggagames5194
      @bustedpluggagames5194 Před rokem

      Have you installed the Starter asset plugin from the package manager?

  • @treegamer63
    @treegamer63 Před rokem +3

    hey so i used this tutorial and its a really good one but idk why but the bullets go to the right instead of forward how do i fix this?

    • @elianderson727
      @elianderson727 Před rokem

      I'm guessing the transform is off on the bulletPoint (where the bullet is created). The bullet is created using the rotation of the bulletPoint. Force is then applied in the direction it is facing (using "transform.forward * bulletSpeed"). Unity considers the z axis (the blue arrow) as forward.
      In the top left of the Scene view change the setting from "Global" to "Local". Select the bulletPoint and rotate it so the blue arrow is pointing forward (if it's shooting right, rotate the y rotation by -90). That should fix it.

    • @samarth6937
      @samarth6937 Před rokem

      No,
      Check gunpoint rotation

  • @Pointless-Content
    @Pointless-Content Před rokem +7

    My bullet just ascends into the backrooms. Is there a way to fix that?

    • @BO0O0O0O0O0O0O0O0M
      @BO0O0O0O0O0O0O0O0M Před rokem +1

      go to the bullet prefab and go to it's rigidbody and change the collision detection from discrete to continous

    • @Pointless-Content
      @Pointless-Content Před rokem +1

      @@BO0O0O0O0O0O0O0O0M That was like 3 months ago. I quit game developing like a week ago. But thanks for the reply.

  • @ADDY64162
    @ADDY64162 Před rokem +1

    bro,when i try to fire it, IT ASCENDS UP TO THE HEAVENS . idk plz try to give me a solution.

  • @randomcontent7004
    @randomcontent7004 Před rokem +1

    This is da best tutorial ever

  • @dominicklofft8946
    @dominicklofft8946 Před rokem +1

    I followed all of the script and directions exactly and ckecked over it multiple times and yet the bullet doesnt fire.

  • @asifmehrabi5154
    @asifmehrabi5154 Před rokem +3

    The shooting is not working it is not showing up in the consol Please Help!

  • @treegamer63
    @treegamer63 Před rokem +2

    how do i add sound effects

  • @mraboodgame9939
    @mraboodgame9939 Před 4 měsíci

    Failed to import package with error: Cannot import package in play mode.
    UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&) ???

  • @BUTTER-ml6qc
    @BUTTER-ml6qc Před rokem +2

    I dont have the First Person template, what do i do?

    • @peterkirk1548
      @peterkirk1548 Před rokem

      Just in case you didn't work it out, or anyone else sees this issue (like I did). I found a package in the Asset store called "Starter Assets - First Person Character Controller | URP". So I created a new project of type "3D Core URP" and downloaded and imported this package. Then I removed the default scene from the hierarchy, and dragged in the scene called "Assets/StarterAssets/FirstPersonController/Scenes/Playground".

  • @Surgicalmushroom
    @Surgicalmushroom Před rokem +3

    When I press left mouse button it does not show in the console and I cannot shoot either

    • @CKdunno
      @CKdunno Před rokem

      Hey, im new to this stuff and i cant help but theres a Unity discord you can join with ppl that can help rlly easily

    • @Surgicalmushroom
      @Surgicalmushroom Před rokem

      It’s fine now I found another tutorial but thanks for the suggestion

    • @andrewkeke9373
      @andrewkeke9373 Před rokem

      ​@@CKdunno hi I need a help ۔ ۔

    • @siaedit
      @siaedit Před rokem

      @@Surgicalmushroom bro what tut? im still struggling lol

  • @Blaze_Shorts15
    @Blaze_Shorts15 Před rokem +2

    hi i get the error Assets/Scripts/Gun.cs(8,38):CS1002;expected. please help

  • @samarth6937
    @samarth6937 Před rokem +1

    Please solve this,
    My camera rotation is moving in only horizontal way
    But not vertically

    • @Ultrapassive
      @Ultrapassive Před 8 měsíci

      Start a new first person project in Unity with the fps sample pack then follow this tutorial

  • @SCEditzs
    @SCEditzs Před rokem +1

    im having trouble, I cant put the sci fi gun under player camera root unless I do it in prefab
    \

    • @GDTitans
      @GDTitans  Před rokem +1

      Unpack the prefab if you want

  • @CaberMan1
    @CaberMan1 Před 11 měsíci +1

    this is a great tutorial but i spent hours trying to fix bugs in the code where i mistyped and i was like "every single line of code is correct which one is it?" and both times it was a missing ; at the end...

  • @GAMEINGOP963
    @GAMEINGOP963 Před 10 měsíci +1

    bro you are best in the world

  • @Hassaanmalik10
    @Hassaanmalik10 Před rokem

    i've got an issue Object referernce not set to an instance of an object . Tell me how can i fix this?

    • @16kajal7
      @16kajal7 Před rokem

      I am having same error. Need solution

  • @Accbfkhoa33
    @Accbfkhoa33 Před rokem +3

    Good work keep it up!

  • @user-hv9qv9mq9o
    @user-hv9qv9mq9o Před rokem +2

    how do you select all the materials at once?

  • @asifmehrabi5154
    @asifmehrabi5154 Před rokem +1

    Can you please help me the Gun.Cs is not working i am getting meny errors. If possible can you copy and paste the code so i can use yours?

    • @andrewkeke9373
      @andrewkeke9373 Před rokem

      same problem
      if you find a solution then please tell me.

  • @sanjayprabakaran8859
    @sanjayprabakaran8859 Před rokem +1

    Hi brother how are you I'm new subscriber I'm From India (Tamilnadu) Your video's good I'm like 🙋🤝 👍

    • @GDTitans
      @GDTitans  Před rokem +2

      Glad it was helpful 👍😀

  • @legionedits2012
    @legionedits2012 Před rokem

    Best tutorial in the world i learnd lit from it thx bro

  • @Reloadclips2024
    @Reloadclips2024 Před rokem +1

    guys if you have any errors just copy the whole code and paste it in chatgpt and done

    • @Reloadclips2024
      @Reloadclips2024 Před rokem +1

      chatgpt will fix the code

    • @GDTitans
      @GDTitans  Před rokem +1

      I don't think so, I have tried chat GPT and it makes some mistakes.

    • @awesomeapollo5169
      @awesomeapollo5169 Před rokem

      @@GDTitans I think ChatGPT is amazing but cannot process code that's too large

  • @LeGordoBondiola
    @LeGordoBondiola Před rokem +1

    Question, I have a bug where it shoots, but the bullets go completly to the left, have encocountered this bug during the coding phase?

  • @SurgePaladyn
    @SurgePaladyn Před rokem +1

    my bullets go backwards instead of forwards, what should I do?

  • @flareboy6
    @flareboy6 Před rokem +1

    whenever i try to put the Gun C# scripts it says It cant add the component because the script class cannot be found. How do i fix this?

    • @plsbefreed
      @plsbefreed Před rokem

      @Knight i dont understand lol

    • @gabrielbatista1536
      @gabrielbatista1536 Před rokem

      Make sure that the 'public class' is declared as 'public class Gun : MonoBehaviour', it's on top of the Gun C# script file

    • @plsbefreed
      @plsbefreed Před rokem

      @@gabrielbatista1536 yeah i figured it out, but now it wont let me playtest

  • @Callmebob124
    @Callmebob124 Před rokem +1

    Is the part in Visual Studio required for it to work? My laptop won't support Mono so I can't open it.

    • @turkishcountryballer
      @turkishcountryballer Před 6 měsíci +1

      You can use visual studio code its lightier than original one its 100 mb

  • @Yellowbruisee
    @Yellowbruisee Před rokem +1

    7:18 naw bro didnt notice it said "GetChild"

  • @manuelhernandez2017
    @manuelhernandez2017 Před rokem +1

    Got anything on a weapon system brother?

  • @vierco1005
    @vierco1005 Před rokem

    I am making a overwatch 2 ultimax witch is a unofficial basically mugën but for fps but just overwatch

  • @kayPlayz.
    @kayPlayz. Před rokem +1

    bro can you please make a video for fps microgame unity. it is working on pc but not on android controls. please make video that how to add android controls to microgame unity

  • @hsfloveyouall
    @hsfloveyouall Před rokem +1

    my bullets only fall immediately after spawn, they don't fly far, what should I do?

    • @GDTitans
      @GDTitans  Před rokem +1

      Increase the force 💪 that is applied to the rigidbody

    • @matyasivanyi7238
      @matyasivanyi7238 Před rokem

      @@GDTitans How can i increase the force?

  • @user-if1zb3ix3y
    @user-if1zb3ix3y Před rokem +1

    Hi! My bullets don't shoot. It shows in the console that the variable bulletPoint is not assigned in the Gun.Shoot() and Gun.Update(). I made everything exactly like in the video, but something is not right.

    • @dggaming363
      @dggaming363 Před rokem +2

      The reson is simple you have to add the bulletPoint gameObject we made to empty field of the gun's bullet point

  • @Radspidey
    @Radspidey Před rokem

    please I know it an old video am gonna talk about but
    in the FPS android Controller Setup video
    you didn't put a button for weapon switching a
    pretty please can you help me with that
    Please

  • @Jayalalithalalithajaya
    @Jayalalithalalithajaya Před rokem +1

    your voic is very comedy🤣🤣🤣🤣🤣🤣🤣🤣😂😂😂 realy your voice is comedy

  • @anxikacontent
    @anxikacontent Před rokem +1

    11:30

  • @awesomeapollo5169
    @awesomeapollo5169 Před rokem +3

    Wow, nice tutorial! How do I publish it?

  • @Moose490
    @Moose490 Před rokem +1

    which template is he using

  • @jaymz779
    @jaymz779 Před 8 měsíci +1

    Hey, I go to unity hub I can’t find the first person

    • @GDTitans
      @GDTitans  Před 8 měsíci +1

      You have to download it

  • @TingunStudios
    @TingunStudios Před rokem +1

    i keep getting a cs1002 error on 21,24 but theres no problem with the code

  • @siaedit
    @siaedit Před rokem +1

    9:49 I dont see the bullet prefab on gun script I have perfectly copied the whole code from the vid what do I doooo aghhhhh :C

    • @siaedit
      @siaedit Před rokem +1

      nevermind im a genius and fixed it :DDDDDDD

    • @GDTitans
      @GDTitans  Před rokem +1

      Great 👍

  • @hermelin_dozral5311
    @hermelin_dozral5311 Před rokem +1

    when i shot the bullet, the bullet fires into the right, how to fix it?

    • @timeaverage
      @timeaverage Před rokem

      same buddy, same...

    • @CJ_Gamezz_YT
      @CJ_Gamezz_YT Před rokem

      @@timeaverage change the bullet speed to negative, i had the same problem

    • @MarleyThomas-kc4kh
      @MarleyThomas-kc4kh Před rokem

      @@CJ_Gamezz_YT pls show your game on yt when it's ✔️

  • @Doctor_Maulwurf
    @Doctor_Maulwurf Před rokem +1

    i made some mistakes can you put the code in the describtion

  • @Dog4vr
    @Dog4vr Před rokem

    whats the button to select all of the guntwo

  • @alimajazz
    @alimajazz Před rokem +1

    How are you getting everything recommended in script in visual basic, I had to type everything myself? is there a setting I need to check?

    • @timeaverage
      @timeaverage Před rokem

      same idk maybe his software just adapts or sum crap. idk. LOL

    • @BO0O0O0O0O0O0O0O0M
      @BO0O0O0O0O0O0O0O0M Před rokem +1

      in unity go edit > preferences > external tools > choose visual studio for external script editor and press "regenerate project files" button below. After this close your visual studio and open it again and it should work

  • @RunyCalmera
    @RunyCalmera Před 8 měsíci

    Can you open this game in an Oculus Quest 2?

  • @karkashh-beats
    @karkashh-beats Před rokem +1

    I did the 999th like so if someone does it 1k then please make a video on how we can play our own game with friends

  • @dooki1945
    @dooki1945 Před rokem +6

    Here is the gun script (Pin this)
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    using StarterAssets;
    public class Gun : MonoBehaviour
    {
    private StarterAssetsInputs _input;

    // Start is called before the first frame update
    void Start()
    {
    _input = transform.root.GetComponent(); // Fixed typo in GetComponent
    }
    // Update is called once per frame
    void Update()
    {
    if (_input.shoot)
    {
    Shoot();
    _input.shoot = false;
    }
    }
    void Shoot()
    {
    Debug.Log("shoot!");
    }
    }

    • @dooki1945
      @dooki1945 Před rokem

      This script is the first gun script so you dont have to type every thing i might edit it so you dont have to do the shoot part either

    • @fordollarsonly7687
      @fordollarsonly7687 Před rokem

      is it c++ or what?

  • @eliamadams2500
    @eliamadams2500 Před 29 dny +1

    8:32

  • @peterkirk1548
    @peterkirk1548 Před rokem +3

    This is a great, simple, focused tutorial - describing how to download, import, and use a gun asset/prefab, how to get the gun barrel to follow the player "look", and how to shoot a "bullet" (which shows how to instantiate a prefab in code).
    Only issue I have is that the gun barrel disappears into walls - anyone else see this issue?

    • @Jazzy6139
      @Jazzy6139 Před 10 měsíci

      its a common issue, there is a fix tho. Search it up on youtube. Its by making a seperate layer for your gun

    • @danieldevine5347
      @danieldevine5347 Před 9 měsíci

      this is common for most if not all games, the gun you see in your hand in games is usually just a picture of your gun, not your actual gun

  • @pffguy133
    @pffguy133 Před rokem +1

    It isnt shooting I have checked everything and it’s all the same but it ain’t shooting pls help

    • @pffguy133
      @pffguy133 Před rokem

      Update I think it has something to do with the input system

    • @timeaverage
      @timeaverage Před rokem

      if u are using visual studio then make sure u save the code thats what i messed up on..

    • @pffguy133
      @pffguy133 Před rokem

      @@timeaverage I have already fixed it just started over and it worked after that

    • @timeaverage
      @timeaverage Před rokem

      @@pffguy133 ok nice

  • @dogman1255
    @dogman1255 Před rokem

    hi i love your tutorial and i was wondering how can i add the shooting sound everytime i shoot?

    • @Ultrapassive
      @Ultrapassive Před 8 měsíci

      Hello, you would just add logic after the bullet gets shot to play the sound.

    • @Adrenaline0000
      @Adrenaline0000 Před 7 měsíci

      probably doesnt know how@@Ultrapassive

  • @LittleBlueGamer
    @LittleBlueGamer Před rokem

    I use model i made because i wanted to

  • @asitayanas1072
    @asitayanas1072 Před 11 měsíci +1

    How do you make the bullet move in a straight part and destroys on contact with an object

    • @Ultrapassive
      @Ultrapassive Před 8 měsíci

      You would use a fast enough velocity or turn off gravity for the bullets. Then use a collider to detect the collision and delete the bullet after the collision.

  • @Its_frenzy_shorts
    @Its_frenzy_shorts Před rokem +1

    What About rolly vortex game. Is it finished?

    • @GDTitans
      @GDTitans  Před rokem +3

      No I'm planning to add a video about admob ads with the shop system

    • @ag_animationz
      @ag_animationz Před rokem

      @@GDTitans that would be so helpful sir

  • @Anixo1080p
    @Anixo1080p Před rokem +2

    Bro,Your Video Is Like @Brackeys
    And I Really Like This Fact...Can U Plz Make A Video On Multiplayer And Server UI And Menu UI

  • @FapFap666
    @FapFap666 Před rokem

    I HAVE A ERRORS
    Assets\Scripts\Gun.cs(28,28): error CS1002: ; expected
    Type of instance in array does not match expected type
    UnityEngine.InputSystem.PlayerInput:OnDisable () (at Library/PackageCache/com.unity.inputsystem@1.4.2/InputSystem/Plugins/PlayerInput/PlayerInput.cs:1734)

  • @B-TECH-Boxvr8
    @B-TECH-Boxvr8 Před 4 měsíci

    wat unity editor are you using

  • @federicovolpi3195
    @federicovolpi3195 Před 7 měsíci

    Please HELP I'm going crazy.... I'm trying to download the right version but I can't see the first person Template of the version you showing... I tried everything but it won't appear

    • @niekhoogendoorn7386
      @niekhoogendoorn7386 Před 7 měsíci

      You need to install a diffrent unity editor mine automatically downloade the 2022 version but you need to download the 2021.3.35f1 version

    • @Nishantrana70
      @Nishantrana70 Před 6 měsíci

      Thanks

  • @raasgarbamusicbit8464

    😮😮😮 Super Nice 👍👍👍👍

  • @charliegaming766
    @charliegaming766 Před rokem

    i can not see the bullet , how can i fix that?

  • @vrush_sane17
    @vrush_sane17 Před rokem +1

    Can this be installed on phone?

  • @Imcoolrexis
    @Imcoolrexis Před rokem +2

    Bro I Have some problemss

  • @Jesseboxworld
    @Jesseboxworld Před 8 měsíci +1

    I can’t find the first person option

    • @GDTitans
      @GDTitans  Před 8 měsíci +1

      You have to download it

  • @user-vb7wh1tb2l
    @user-vb7wh1tb2l Před 5 měsíci +1

    cool video)